java - How to get date in this format Sun May 17 2015 09:31:49 -
this question has answer here:
- converting date format 5 answers
i getting date in calender object 1 of client api in format "2015-05-17t09:31:49"
want displayed in "sun may 17 2015 09:31:49"
. tried below code giving me output in format sun may 17 00:00:00 ist 2015
simpledateformat ft = new simpledateformat ("yyyy-mm-dd"); string input = "2015-05-17t09:31:49"; date t = ft.parse(input); system.out.println(t.tostring());
someone please guide me how this.
check can you:
simpledateformat ft = new simpledateformat ("yyyy-mmm-dd hh:mm:ss"); string input = "2015-05-17 09:31:49"; date t = ft.parse(input); system.out.println(t.tostring());
Comments
Post a Comment