This discussion is archived
2 Replies Latest reply: Oct 9, 2007 3:29 AM by 807605 RSS

Query about Date_Time class of Java 1.5.

807605 Newbie
Currently Being Moderated
Hello,

Application Background:
We have a Timezone specific to User which is fetched from the database.

Date now = Calendar.getInstance().getTime();
This is a method of Date_Time class of Java 1.5 API which takes systemdate and timezone and checks if the systemdate falls under Day Light Time period. If it falls then convert the systemdate accordingly to its equivalent day light.

This method picks up the timezone of the system in which it is executed. As per requirement we need to pass the Users timezone to this method overriding what it now takes as the system's timezone. Can we implement this and how?

Kindly suggest.

Thanks and Regards,
Dan.