Skip to content

Instantly share code, notes, and snippets.

Created Mar 11, 2020
What would you like to do?
Get current time
package com.thdespou;
import java.util.Date;
public class Main {
public static void main(String[] args) {
// Date
Date now = new Date();
System.out.println("Current Date in milliseconds is :" + now.getTime());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment