Getting the Current Time There are two ways of getting the current time. // One way long time = System.currentTimeMillis(); // Another way Date now = new Date();