Jan 26, 2009 #1 Brianfree Programmer Feb 6, 2008 220 GB Hi, i have a values in a table like... 2009-01-26 14:10:34 Ho can i display it on the screen as 26/01/2009 Also how can i get this into different variables like.. Day = 26 WeekDay = Mon Month = Jan Many thanks, BF
Hi, i have a values in a table like... 2009-01-26 14:10:34 Ho can i display it on the screen as 26/01/2009 Also how can i get this into different variables like.. Day = 26 WeekDay = Mon Month = Jan Many thanks, BF
Jan 26, 2009 #2 jpadie Technical User Nov 24, 2003 10,094 FR Code: echo date ('j/n/Y', strtodate($originalDate)); Code: $oD = strtodate($originalDate); $day = date('j', $oD); $weekday = date('D', $oD); $month = date('M', $oD); Upvote 0 Downvote
Code: echo date ('j/n/Y', strtodate($originalDate)); Code: $oD = strtodate($originalDate); $day = date('j', $oD); $weekday = date('D', $oD); $month = date('M', $oD);
Jan 26, 2009 Thread starter #3 Brianfree Programmer Feb 6, 2008 220 GB Hi thanks for the quick reply! I get the following error when i try to use it.. Fatal error: Call to undefined function strtodate()? Do i need to declare the function or somthing? Many thanks.. BF Upvote 0 Downvote
Hi thanks for the quick reply! I get the following error when i try to use it.. Fatal error: Call to undefined function strtodate()? Do i need to declare the function or somthing? Many thanks.. BF
Jan 26, 2009 Thread starter #4 Brianfree Programmer Feb 6, 2008 220 GB My data in the table is set as a Date_Time field if this helps??? Many thanks Brian Upvote 0 Downvote
Jan 26, 2009 #5 jpadie Technical User Nov 24, 2003 10,094 FR sorry. replace strtodate with strtotime. typed without engaging brain ... Upvote 0 Downvote