I am writing a application where I want to convert a string “2011-07-17 08:05:50” to “Jul 17 08:05AM”. Is there a direct way to do it in Java. I want both input and output in string. Please let me know if there is a way to do it directly. Thank you for your time and help.
Share
Use
SimpleDateFormat,Reference.