I take date and time input from the user and form a Date object.
I Get the user TimeZone from Internal User object.
So now I have the date and the TimeZone.
For Quartz i have to convert the date and time that the user have provided from his timezone to corresponding date and time of the server's timezone.
saumil baxi wrote:Thanks for the reply.
But my requirement is bit different.
I will get Date and the Timezone as an input and I need to convert that date into Some other TimeZone.
So the function that I am looking out is something like This..
ConvertDate(Date date,TimeZone Original,TimeZone Convert) {
This function should return me the date and time belonging to Timezone COnvert
}
-- Venkateswara Rao Desu
Jesper de Jong wrote:What your code does is shift the time that your input Date object has by a number of hours (the difference between the two timezones you pass in).
It's feeding time! Give me the food you were going to give to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|