Quantcast
Channel: BlogoSfera » identifier
Viewing all articles
Browse latest Browse all 10

How to ignore timezone identifier in date parsing (Java)?

$
0
0

I’m trying to parse date like this: DateFormat df = new SimpleDateFormat("MMM dd, yyyy K:mm:ss,SSS a z", Locale.ENGLISH); Date date = df.parse("Oct 04, 2015 2:11:58,757 AM UTC"); And I’m getting a value of 5 hours am, because i live in UTC+3 timezone. But i need to have value of 2am, however, with the same format […]

The post How to ignore timezone identifier in date parsing (Java)? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 10

Trending Articles