Is there any PHP function that returns the date of the first week ,
i:e, if i pass "Monday" , it should return 02 of september,
i know, how to get the day, month, date like
date('l') , date('m'), date ('d')
But stuck at this point
This should get you started:
$dt = new DateTime('first Monday of this month');
echo $dt->format('l m d');
See it in action
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With