in reply to Date Convert

Is 6/10/2003 in October or June? If the date is 1/11/2003 (regardless of whether you use little-endian or middle-endian format) does 1112003 mean 1/11/2003 or 11/1/2003, both of which are valid in both systems?

Pay heed to the advice to use YYYY-MM-DD format. Not only does it lend itself to convenient sorting as another Monk noted, it's also unambiguous and an international standard. If you have a single-digit day or month, pad it with zero using sprintf or one of the other solutions presented here.

Replies are listed 'Best First'.
Re: Re: Date Convert
by davorg (Chancellor) on Jun 10, 2003 at 15:39 UTC
    Is 6/10/2003 in October or June?

    It's in October obviously. There's no other sane interpretation. Thinking it is in June would just be madness.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg