Skip to content

How to create current Date and TimeStamp from Java

4
  • vinay
How to create current Date and TimeStamp from Java

DateTime.now is basically how you get currrent date and time in Java. there are essentially multiple ways of doing it: 1) using SimpleDateFormat and Date DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy-HH:mm:ss"); Date currentdate = ne

Read this post on javarevisited.blogspot.com


Popular Articles by this blogger