SyntaxFix
Write A Post
Hire A Developer
Questions
System.out.println( new SimpleDateFormat("yyyy:MM:dd - hh:mm:ss a").format(Calendar.getInstance().getTime()) ); //2018:02:10 - 05:04:20 PM
date/time with AM/PM