I will work with third party API. They accept a date pattern like:
2012-02-15T17:34:37.937-0600
I know the pattern should be match like
yyyy-MM-ddTHH:mm:ss.s
But I am not sure how to represent the last “-0600” timezone? I think the standard timezone is “-06:00”, anyone knows how to get rid of the “:” in the date pattern?
Thanks.
maybe you want “Z” ?
see http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html:
This code:
produces: