R
Robert Morley
Okay, so here we go again...the infamous issue with dates.
I have a text file FTP'd to me every day. I have very little control over
its contents, so please don't suggest that I "simply use an unambiguous
format"...I can probably request that for next year, but meanwhile, I need
to work with what I have.
In the file (tab-delimited, no quotes, field names on first row), I have a
date field. Up until now, it has been interpreted correctly as such by the
Microsoft Text Driver because there were enough dates that it could figure
out which part was the day, month, and year. Now that our year is winding
down, however, it appears it's having problems. Today, for example, I got
only two dates, in MM/DD/YY (US standard) format:
12/05/05
12/01/05
The Microsoft Text Driver, which has been quite intelligent up to now about
figuring out which part was which from the non-ambiguous dates and applying
it retroactively to all (thus leaving me completely unaware of the potential
problem) is now confused, and interpreting the above dates as YY/MM/DD
(Canadian standard).
Does anybody know how to force it to re-interpret these dates? There are
about 150 fields in the file, so I don't want to specify field information
for each one...any other suggestions? For now, I'll try changing my system
settings to US standard and see if that works, but that's hardly the ideal
solution here.
Thanks,
Rob
I have a text file FTP'd to me every day. I have very little control over
its contents, so please don't suggest that I "simply use an unambiguous
format"...I can probably request that for next year, but meanwhile, I need
to work with what I have.
In the file (tab-delimited, no quotes, field names on first row), I have a
date field. Up until now, it has been interpreted correctly as such by the
Microsoft Text Driver because there were enough dates that it could figure
out which part was the day, month, and year. Now that our year is winding
down, however, it appears it's having problems. Today, for example, I got
only two dates, in MM/DD/YY (US standard) format:
12/05/05
12/01/05
The Microsoft Text Driver, which has been quite intelligent up to now about
figuring out which part was which from the non-ambiguous dates and applying
it retroactively to all (thus leaving me completely unaware of the potential
problem) is now confused, and interpreting the above dates as YY/MM/DD
(Canadian standard).
Does anybody know how to force it to re-interpret these dates? There are
about 150 fields in the file, so I don't want to specify field information
for each one...any other suggestions? For now, I'll try changing my system
settings to US standard and see if that works, but that's hardly the ideal
solution here.
Thanks,
Rob