On Mon, Mar 3, 2008 at 12:50 PM, David Krings <[EMAIL PROTECTED]> wrote:

>  But isn't there already a way to format a date any way one likes to?
>


The desired magic was parsing, not formatting, British dates.

Unfortunately, date_create_from_format() isn't a replacement for
strtotime(), because it assumes you know exactly what format the date
is in. The best thing about strtotime() is that you can throw anything
at it (um, except for a British date) and it will work.

> In regards to date, the Canadian notation of year/month/day is what
> comes closest

Or the MySQL date, 2008-03-02. Again, the month-day order throws
non-US, non-engineers off.

-- 
Chris Snyder
http://chxo.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to