I am getting date as below in json response .
{"dateTime":"2012-03-03T10:00:00.890+05:30"}
I wated to display it like 3 march 2012 10Am in java . How to format this date
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to do it in Java, Use SimpleDateFormat like this:
EDIT:
To match with your scenario I have edited it as follows:
In the above
inputstring you will have to remove the: colonfrom the time zone part i.e.+05:30. You could use regex to do this as shown in this post. And then use following code to convert it in your format: