This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Convert a date and time to a different time zone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Convert a date and time to a different time zone" Watch "Convert a date and time to a different time zone" New topic
Author

Convert a date and time to a different time zone

Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
Dear friends
How can I display a the date & time converted into a different time zone?
For example I have a time in this format
String date="2002-09-25 13:33:06";
Asssume this is in a database and database server resides in US.
If I view this date in India through a web browser, it should be converted into corresponding indian time.
Do I need to convert the time and store the database?
Can I convert after accessing from the database?
Please help
Regards
Binu


Sarath Mohan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Convert a date and time to a different time zone
 
Similar Threads
GMT to EDT
Java Date problem
Converting from GMT to Local Timezone using two seperate fields (date & time).
convert date object in any time zone to GMT or remove time zone
set JVM timezone in Linux