Date parse with Timezone - Android

347 views Asked by At

The input date is Tue Jun 09 07:00:00 SAST 2015. I want to parse this to a date so I used

SimpleDateFormat inputFormatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.ENGLISH);

Date inputDate = inputFormatter.parse("Tue Jun 09 07:00:00 SAST 2015");

This throws a ParseException at offset 20

0

There are 0 answers