×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Matt Parry
Added: Aug 24, 2016 9:31 PM
Views: 10
Tags: no tags
  1. $date = new DateTime('now');
  2. $date->modify('last day of this month');
  3. return $date->format('Y-m-d');