Find Unix Timestamp of Midnight on Most Previous Monday
How can I find the Unix Timestamp of m开发者_C百科idnight on (the beginning of) the most previous Monday?
Use strtotime
date("r", strtotime("last monday"));
yields
Mon, 28 Jun 2010 00:00:00 -0700
精彩评论