I have a date/time string from a data file in the form "2014/01/09 07:24:36:001".
I would like to convert it to a DateObject. I cannot do it by hand because I have about a thousand of them.
This does not work:
DateObject["2014/01/09 07:24:36:001", DateFormat -> {"Year", "/", "Month", "/", "Day", " ", "Hour24", ":", "Minute", ":", "Second", ":", "Millisecond"}] It returns the error:
DateObject::str: String 2014/01/09 07:24:36:001 cannot be interpreted as a date.
This does work however so I think DateObject does not like the "Millisecond" part.
DateObject["2014/01/09 07:24:36", DateFormat -> {"Year", "/", "Month", "/", "Day", " ", "Hour24", ":", "Minute", ":", "Second"}] How do I convert the date/time string "2014/01/09 07:24:36:001" to a DateObject without losing the fractional second information?