mattnewmedia Posted March 17, 2009 Share Posted March 17, 2009 Here's my code: $dDate=strtotime('last Monday'); $dDate=date("F m", $dDate); Everytime I run it I get March 03 which is several weeks ago. Does this have to do with leap year or something? Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted March 17, 2009 Share Posted March 17, 2009 The error is in your format. 'm' is a numeric representation of the month. So, being march, you're getting 03. You should be using 'd'. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.