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
I have a Dell Latitude E6400 and water was spilled on it
How to keep a process (command) window open
Firebird : to get data types of all fields in user tables
Cannot Start Microsoft Outlook 2010. Cannot Open the Outlook Window
vb script to launch auto run on the d drive
KDC Problems
Hyper-V Host with two NIC's in the same network
Oracle Distinct
csv row limit
Access 2007 use combo box selection to run query