I have problems parsing and reformatting a date string
DateFormat dfIn = new SimpleDateFormat("yyyy-MM-dd hh:mm:ssZZZ");
theDate = dfIn.parse("2006-05-17 10:57:00+02");
unfortunately this does not work
and I do not fully understand the javadoc
thx
Peter
plasticfloor@gmail.com - 13 Jun 2006 13:17 GMT
you're missing two digits at the end +0200
a good way to go about a problem like this for next time is -
Date now = new Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ssZZZ");
System.out.println( df.format( now ));