SyntaxFix
Write A Post
Hire A Developer
Questions
It will work.
long yourmilliseconds = System.currentTimeMillis(); SimpleDateFormat sdf = new SimpleDateFormat("MMM dd,yyyy HH:mm"); Date resultdate = new Date(yourmilliseconds); System.out.println(sdf.format(resultdate));