• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
date / time help

#2
Maybe this is helpful:

To find the first day of the current month:
PHP Code:
$d = new DateTime('first day of this month');
echo 
$d->format('Y-m-d'); 

To find the last day of the current month:
PHP Code:
$d = new DateTime('last day of this month'); 
echo 
$d->format('Y-m-d'); 
Reply


Messages In This Thread
date / time help - by ninja258 - 03-22-2019, 12:36 PM
RE: date / time help - by Wouter60 - 03-22-2019, 02:45 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.