liamloveslearning Posted May 20, 2010 Share Posted May 20, 2010 Hi everyone, Ive been googling to no avail, So thought id ask on here, Has anybody advice on how to convert strtotime into a date format? At the moment I have echo strtotime ("last Monday"), "\n"; Quote Link to comment https://forums.phpfreaks.com/topic/202364-strtotime-into-date-format/ Share on other sites More sharing options...
Daniel0 Posted May 20, 2010 Share Posted May 20, 2010 http://php.net/manual/en/function.date.php Quote Link to comment https://forums.phpfreaks.com/topic/202364-strtotime-into-date-format/#findComment-1061054 Share on other sites More sharing options...
liamloveslearning Posted May 20, 2010 Author Share Posted May 20, 2010 cracked! sorry, echo date('Y-m-d', strtotime ("last Monday")) Quote Link to comment https://forums.phpfreaks.com/topic/202364-strtotime-into-date-format/#findComment-1061055 Share on other sites More sharing options...
salathe Posted May 20, 2010 Share Posted May 20, 2010 Hi everyone, Ive been googling to no avail, What search phrases have you been using?! The PHP manual pages for strtotime and date functions are right at the top of the list of results for anything like "strtotime to date" and such. Quote Link to comment https://forums.phpfreaks.com/topic/202364-strtotime-into-date-format/#findComment-1061057 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.