This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
How to convert Timezone IST to GMT(+05:30) formate?
Narasimham Koppadi
Greenhorn
Joined: Nov 08, 2012
Posts: 1
posted
Nov 08, 2012 01:37:22
0
Actually my
java
code like this..
String date1=null; String formate="IST"; SimpleDateFormat sourceFormat = new SimpleDateFormat("z"); SimpleDateFormat gmtFormat = new SimpleDateFormat("'GMT('Z')'"); date1 = gmtFormat.format(sourceFormat.parse(formate)); System.out.println(date1);//output GMT(+0530)
if you change IST to
PST
it will display like GMT(-0800) but it is always display GMT(+0530)
Please help me..
I agree. Here's the link:
http://aspose.com/file-tools
subject: How to convert Timezone IST to GMT(+05:30) formate?
Similar Threads
String GMT Date conversion to EST/EDT
Problem in parsing String into a particular Date format
Date Conversion
Reg: Retriveing timezone from timestamp
Sort Date having date, timestamp and timezone.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter