Jump to content

[SOLVED] Getting the UNIX timestamp of Monday in the current week


947740

Recommended Posts

Let us say that I have a day that is not Monday (E.G. today) as a unix timestamp: $date = strtotime("now"). How do I change $date to the timestamp of the Monday in the week of the original date?

 

I.E., how would I change the value of $date to this Monday's timestamp?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.