How to get timestamp in string format in Java? \"yyyy.MM.dd.HH.mm.ss\"
String timeStamp = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Timestamp(
You can use the following
new java.sql.Timestamp(System.currentTimeMillis()).getTime() Result : 1539594988651
Hope this will help. Just my suggestion and not for reward points.