I have two columns in my db: start_date and end_date, which are both DATE types. My code is updating the dates as follows:
start_date
end_date
DATE
date("Y-m-d",strtotime("last day of +1 month",strtotime($anydate)))