SyntaxFix
Write A Post
Hire A Developer
Questions
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yy hh.mm.ss.S aa"); String formattedDate = dateFormat.format(new Date()).toString(); System.out.println(formattedDate);
Output: 11-Sep-13 12.25.15.375 PM