Beginning and End Date of Specified Month


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.