SyntaxFix
Write A Post
Hire A Developer
Questions
You can make use of java.util.Date with direct date string format:
java.util.Date
String timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());