Re: Date formatting
- From: Dr John Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Nov 2005 18:54:39 +0000
JRS: In article <3umuf2F11357fU1@xxxxxxxxxxxxxx>, dated Thu, 24 Nov
2005 23:50:54, seen in news:alt.comp.lang.borland-delphi, Heinrich Wolf
<invalid@xxxxxxxxxxxxxxx> posted :
>I'm afraid the data itself will not lead to a determined decoding.
>You should ask the user to specify a mask.
>
>Look at this example:
>2005-01-02 01:30:00
>What does it mean?
>
>January 2nd?
>February 1st?
>a.m.?
>p.m.?
It is in ISO8601 form, as a date followed by a time.
It can only mean 2005 January 2nd at 01:30h in the early morning.
Local time, except by agreement or context.
However, three meanings are possible for 01/02/03 if the century can be
assumed, and the OP's problem has no general solution.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
.
- References:
- Date formatting
- From: Steve
- Re: Date formatting
- From: Heinrich Wolf
- Date formatting
- Prev by Date: how to close more than 1 form window
- Next by Date: Deterimin name of TCombobox object in its constructor
- Previous by thread: Re: Date formatting
- Next by thread: Inserting unicode string into database using ADO(dbGo)
- Index(es):
Relevant Pages
|