matleeds Posted December 8, 2011 Share Posted December 8, 2011 Hi, I'm struggling a bit with using a date format and strtotime() if(!empty($_GET['utime'])) { $time = strtotime($_GET['utime']); } utime is supplied in the format dd/mm/yyyy but when I use strtotime() it treats it as mm/dd/yyyy....so 07/12/2011 is taken as 12th Aug rather than 7th Dec..which is the date I want to use. I had a quick ganders through the forums but couldn't find anything specific to this. is there any other attributes to strtotime() that will help, or a similar fucntion or a neat way of swoping my dd/mm/yyyy round before i use strtotime() any help greatly appreciated... Quote Link to comment https://forums.phpfreaks.com/topic/252765-date-format-and-strtotime/ Share on other sites More sharing options...
Pikachu2000 Posted December 8, 2011 Share Posted December 8, 2011 http://us.php.net/manual/en/datetime.formats.date.php Quote Link to comment https://forums.phpfreaks.com/topic/252765-date-format-and-strtotime/#findComment-1295840 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.