java - How to get date in this format Sun May 17 2015 09:31:49 -


this question has answer here:

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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -