| List: | General Discussion | « Previous MessageNext Message » | |
| From: | william drescher | Date: | April 17 2012 1:50pm |
| Subject: | Re: mysql friendly dates | ||
| View as plain text | |||
On 4/16/2012 3:04 PM, Haluk Karamete wrote: > What's the right built in php date function formatting would be to take a > simple date, that's in a format like 05/16/1960 and turn it into a mysql > datetime datatype friendly format? > I don't mind H M S to be as 00:00:00/ > wrote my own: function US2ISODateTime($date) { $dateTime = strtotime($date); return date('Y-m-d H:i:00', $dateTime); } //convert from US format to ISO format
| Thread | ||
|---|---|---|
| • mysql friendly dates | Haluk Karamete | 16 Apr |
| • Re: mysql friendly dates | william drescher | 17 Apr |
