//The Date constructor (click the link!) accepts the time as long in milliseconds, not seconds. long currentDateTime = System.currentTimeMillis(); //creating Date from millisecond Date currentDate = new Date(currentDateTime);