I need to get previous 30 days from a specific date which is available from database(eg: 2010-05-23 12:36:29).I am try it by using
date('d', strtotime("-30 days"))
Which is getting the currect answer what i looking for but it is not help me to enter date from database.Please help me to solve the issue.