This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Java time & date API
Joined: Jul 20, 2009
Jul 20, 2009 12:41:06
I get started = "2009-07-20T11:04:02-07:00" time
from the server. I know the current device location is Newyork (lon="-73.805687" lat="40.682949"). The way C# code handles it is,
DateTime Started = Convert.ToDateTime(Reader["Started"]);
if(Reader["TimeZoneOffset"] != DBNull.Value)
TimeZoneOffset = Convert.ToInt32(Reader["TimeZoneOffset"]);
And, i display Started : 7/20/2009 2:04 PM
How can this same thing be done in JAVA? Please help!!
Joined: Sep 13, 2007
Jul 20, 2009 20:49:24
Welcome to the ranch.
Try looking at the
I agree. Here's the link:
subject: Java time & date API
Importance of jbossjta-properties.xml
Is it not possible to install apache-tomcat-6.0.20 as a service in WindowsXP SP3?
Error Deploying EAR file
can't run from the command line to save life
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014