Answers for "first and last date of month in php"

PHP
1

first day of month php

$first_day = date('Y-m-01');   $last_day = date('Y-m-t');
Posted by: Guest on August-29-2021
1

get month first date and last date in php

$first_day_this_month = date('m-01-Y'); // hard-coded '01' for first day
$last_day_this_month  = date('m-t-Y');
Posted by: Guest on September-06-2021

Code answers related to "first and last date of month in php"

Browse Popular Code Answers by Language