Android : How to parse date in android format.

on Tuesday, October 7, 2014


I have date in this formate 20141007T200000100000 i need to parse with time zone is UTC+10 but this is vary with date see 100000 this is for UTC+10 so how to parse this date and store value in Date variable.



SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd'T'HHmmssSSSZ");
Date date = format.parse("20141007T200000100000");
Log.e("", "Share.datetime==" + date.toString());

0 comments:

Post a Comment