Re: Date formatting



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.
.



Relevant Pages

  • Re: Date formatting
    ... I'm afraid the data itself will not lead to a determined decoding. ... You should ask the user to specify a mask. ...
    (alt.comp.lang.borland-delphi)
  • RE: Build number does not seem to increment
    ... equal to the number of seconds since midnight local time, ... Also you can specify an asterisk for revision number. ...
    (microsoft.public.vsnet.general)
  • Re: Restart a dll Build Number and Revision
    ... Matt Berther wrote: ... If you specify major and minor, you can specify an asterisk for build. ... This causes build to be equal to the number of days since January 1, 2000, local time, and revision to be equal to the number of seconds since midnight, January 1, 2000, local time, divided by 2. ... If you specify major, minor, and build, you can specify an asterisk for revision. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Restart a dll Build Number and Revision
    ... If you specify major and minor, you can specify an asterisk for build. ... This causes build to be equal to the number of days since January 1, 2000, local time, and revision to be equal to the number of seconds since midnight, January 1, 2000, local time, divided by 2. ... If you specify major, minor, and build, you can specify an asterisk for revision. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Getday function
    ... Hey Guys ... This can be done in VBscript weekdayto return the day of the week ... current Local time .. ... Can't specify a date! ...
    (comp.programming)