I want to convert MySQL Time data type using PHP and Javascript. I know it can be done using FORMAT_TIME of MySql, but I would like to do the same with php. The Time format is hh:mm:ss by default and I would like to convert it to hh:mm.
3
-
1php.net/manual/en/function.date-create-from-format.phpMarc B– Marc B2012-04-10 16:39:03 +00:00Commented Apr 10, 2012 at 16:39
-
Do You use a Datetime Field? or only Date? or a Timestamp?René Höhle– René Höhle2012-04-10 16:39:20 +00:00Commented Apr 10, 2012 at 16:39
-
Where does the javascript fit in?jeroen– jeroen2012-04-10 16:41:41 +00:00Commented Apr 10, 2012 at 16:41
Add a comment
|