How can I get the current time and date in an Android app?
You could use:
import java.util.Calendar Date currentTime = Calendar.getInstance().getTime();
There are plenty of constants in Calendar for everything you need.
Check the Calendar class documentation.
1.4m articles
1.4m replys
5 comments
57.0k users