Microsoft
Software
Hardware
Network
Question : java get utc date/time
I need to get the UTC/GMT current date/time. I'm using the below and it adds "-0700" at then end...is this code valid?
private String getCurrentDate(){
Calendar cal = new GregorianCalendar();
cal.setTimeZone(TimeZone.g
etTimeZone
("GMT"));
DateFormat formatter = new SimpleDateFormat("yyyy-MM-
dd'T'HH:mm
:ssZ");
return formatter.format(cal.getTi
me());
}
result of above is 2010-05-19T16:39:15-0700
Answer : java get utc date/time
take the Z out of the date format string
Random Solutions
microsoft sql windows 2008 r2
Running CEICW to install SSL Certificate
Sonicwall Pro 2040 Content Filter (CFS) question - not sure which one to use.
Exchange 2007 error 550
VS 2010 / NET 4 training videos
Visio 2007 installing problem
Can I use Clonezilla for Business purposes
APEX
SBS 2008 looking for evidence of a user being logged on
To Check ansi padding setting of tables