Date Formats

From: Roger (roger_varley_at_yahoo.com)
Date: 03/17/04


Date: 17 Mar 2004 08:13:20 -0800

Hi

I'm struggling with dates and date formats. I'm reading a file that
contains a date format field which contains the string
"YYYY-MM-DDThh:mm:ss:TZD" and a date field that contains the string
"2004-03-12T09:30:47". How do I create a date object using the format
and date information that I have been given. The date format (and
hence the date) can be variable so I need to use the information in
the file rather than manually parsing the date if possible.

Regards
Roger



Relevant Pages

  • Re: frustrated by fscanf and sscanf
    ... there is no threads talking about reading a series of numbers. ... <snip description of input file structure> ... Your description of the file format makes no sense at all. ... along with a sample of your input file or a clearer ...
    (comp.lang.c)
  • Re: Write to file
    ... Nice description Bob. ... you can write the values into a string and then ... them in text format has advantages and disadvantages. ... There's a small performance penalty when reading them back, ...
    (microsoft.public.vc.mfc)
  • Re: Julian Date Conversion - Can Anyone Help?
    ... If I'm reading the dates correctly, ... them to the correct date format. ... Public Function ConvertJulianDate(strJulianDate As String) As Date ... Kevin ...
    (comp.databases.ms-access)
  • Re: Reading and Writing to Binary files
    ... really used it but to look up a command every once and a while if I forgot ... > only do IO in a textual format, that is what they were made for. ... > you wonder about the binary flag passed to open, you didn't bother reading ... program uses the "istringstream" class to store the information. ...
    (comp.programming)
  • Re: TCL 8.5.0.0 beta not handling XBMs?
    ... I'm not aware of any reason for XBM files to be a problem in general, ... I thought the error was saying it found something nasty reading the file. ... due to the not-very-obvious format of the -bitmap option (which in turn ...
    (comp.lang.tcl)