+ 1

Getting time in Java at real time..

how do I get time at real time in Java to compare it to some value of time I need to?

20th Jan 2018, 9:14 AM
Muhammad Awais Ayaz Khan
Muhammad Awais Ayaz Khan - avatar
4 Réponses
20th Jan 2018, 9:19 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
you can use java. util. Date
20th Jan 2018, 9:15 AM
shobhit
shobhit - avatar
+ 3
by using Date class
20th Jan 2018, 12:09 PM
Vaibhav Tandon
Vaibhav Tandon - avatar
+ 2
Commonly we use util.date but when we are working with database we need sql.date for comparing date formats.
20th Jan 2018, 3:00 PM
praveen
praveen - avatar