How to get first day of current week – strtotime

The ‘strtotime()’ function parses an English textual datetime into a Unix timestamp and it is quite powerful with relative time format.


### To get sunday timestamp of current week

strtotime('sunday this week');

### To get monday timestamp of current week

strtotime('monday this week');


You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *