Hi,
Still researching this and I realize that I may be attacking the problem the wrong way. When I do a Date now = new Date();, I wanted to make sure now was in UTC, which I now read is the default for the java.util.Date object.
So, as long as I make my Date objects myself, they are in UTC.
So, I guess my question is more in comparing dates, if I create Date now = new Date();
And then a user passes a
String value to my program of "March 18, 2010 1:05 PM PST",
and I want to convert that String to a date and then find the difference between the two dates, How would I make sure I am not comparing apples to oranges ?
For example I want to say now - (Date value of String 1:05 PM PST) = some value.
I would want the calculation to return the same elapsed time if an equivalent PST or EST string was passed to the program .
Thanks, this is hurting my brain!
Kim