Welcome Guest, Not a member yet? Register   Sign In
date / time help
#2

(This post was last modified: 03-22-2019, 02:45 PM by Wouter60.)

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



Theme © iAndrew 2016 - Forum software by © MyBB