Use Joda-Time, It’s a popular library and works like charm.
Steps to follow:
-
Add Jodatime to your project. Here Download Joda-time
2.Add below code.String date = "2016-09-07T02:03:30.000+03:00"; DateTime dt = new DateTime( date) ; System.out.print(dt.toDate());
My Output:
Wed Sep 07 04:33:30 IST 2016
4
solved What is the pattern of this type of Date?