+ 4
How to get the current time in java?
I want to get the current time in java to make something which when run will show different output depending on java. For that i want to know how to get current time in java. Thanks!!
3 Respuestas
+ 3
thanks @hasty rei
What If i need only time and date and also of my country.
I think its showing time of greenland.
+ 3
got it on stackoverflow. thanks.
calender.getInstance();
and then cal.getTime()
😊
Thanks again