> Hi,
> That date is in EST in the Excel file, but when I grab it using
[quoted text clipped - 3 lines]
> it'll interfere with the rules to which this program is supposed to
> abide by.
Okay, so why do you think this value is "in EST"?
Firstly, it is not in EST it is in what we might call
Eastern Time which includes a EST and EDT period.
Okay, now that I got that off my chest; let me add
that Dates are not in any TZ, they just print that way.
They are a binary number. Do they print as what the wall
time in the "Pacific" zone would be or what the wall
time in Eastern would Be? Case 1: the sheet
says 5:00 PM your result says 2:00 PM. Alternatively,
case 2: the sheet says 5:00 PM and your date object prints
as 5:00 PM.
Assuming you are in Pacific time, case one is explained
by the API knowing the TZ of the data, so it knew how to
convert 5:00 PM EST to a binary number which is displaying
by default in your local machine time as 2 PM.
The second case is explained by the API finding 5:00 PM, not knowing
the TZ, so it assumed your local zone (Pacific) and making a local 5PM PST.
So which is it?
-Paul