How to get first day of current month in php? -
this question has answer here:
what want 1st date of current month
here how last day of current month
date('d-m-y', strtotime('last day of month')) i've tried use this, didn't work me
date('d-m-y', strtotime('first day of month')) any idea how solve problem ?
date('01-m-y') should ;)
Comments
Post a Comment