shorty3 Posted May 10, 2010 Share Posted May 10, 2010 Ive got this code which does year-month-day and then the time $date = gmdate('Y-m-d h:i:s'); and datebase is DATETIME default 0000-00-00 00:00:00 How can i set it out so is day-month-year and/or somthing like monday 24th october 2009 ..... Link to comment https://forums.phpfreaks.com/topic/201207-date-and-time-and-databases/ Share on other sites More sharing options...
Joshua4550 Posted May 10, 2010 Share Posted May 10, 2010 Please referr to the PHP manual for PHP date/time formatting! http://php.net/manual/en/function.date.php Link to comment https://forums.phpfreaks.com/topic/201207-date-and-time-and-databases/#findComment-1055608 Share on other sites More sharing options...
shorty3 Posted May 10, 2010 Author Share Posted May 10, 2010 i have and i still dont know how? Link to comment https://forums.phpfreaks.com/topic/201207-date-and-time-and-databases/#findComment-1055609 Share on other sites More sharing options...
kenrbnsn Posted May 10, 2010 Share Posted May 10, 2010 You have to combine the date and strtotime functions to format the date the way you want it. Ken Link to comment https://forums.phpfreaks.com/topic/201207-date-and-time-and-databases/#findComment-1055611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.