Posted By

ericmuyser on 03/01/11


Tagged

php date


Versions (?)

Beginning and End Date of Specified Month


 / Published in: PHP
 

  1. $date = date(time());
  2. $start_date = date('Y-m-d', mktime(00, 00, 00, date('m', strtotime($date))+1, 01));
  3. $end_date = date('Y-m-d', mktime(23, 59, 59, date('m', strtotime($date))+2, 00));

Report this snippet  

You need to login to post a comment.