Answers for "php date end of day"

PHP
0

php get end date of month

// First date of the month.
$monthFirstDate = date('Y-m-01', strtotime('today'));

// Last date of the month.
$monthLastDate = date('Y-m-t', strtotime('today'));

// Second last date of the month
$monthLastSecondDate = date('Y-m-d', strtotime('-2 day', strtotime('today')));
Posted by: Guest on September-07-2021
0

php date start of day

$startOfDay=date("Y-m-d 00:00:00");
Posted by: Guest on June-26-2021

Browse Popular Code Answers by Language