I want to get the current time and date in milliseconds. How can I get this?
I tried this:
Date date=new Date() ; System.out.println(\"Today is \" +dat
Try:
(d.getTime() % (86400000))
Note: 86400000 is the number of milliseconds in a day.