Tuesday, September 10, 2013

[android help] convert "2013-07-21T10:31:00" string to "20-Jul-2013" format string


convert "2013-07-21T10:31:00" string to "20-Jul-2013" format string


java - convert "2013-07-21T10:31:00" string to "20-Jul-2013" format string - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
















how to convert "2013-07-21T10:31:00" string to "20-Jul-2013" format string.


Currently i am getting a string output from web service "2013-07-21T10:31:00" i want to convert this string to "20-Jul-2013" format string.


























You can try this



String strDate="2013-07-21T10:31:00";
DateFormat df=new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss");
Date date=df.parse(strDate);
df=new SimpleDateFormat("dd-MMM-yyyy");
System.out.println(df.format(date));



















lang-java






Read more

stackoverflow.comm



No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...