Site is under maintenance mode. Please wait few min!

Check the post How to get current time and date in Android | Current date time in android

You could use:

import java.util.Calendar

Date currentTime = Calendar.getInstance().getTime();

You can find the full calendar documentation here http://developer.android.com/reference/java/util/Calendar.html

Categories: Android

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Social Media Auto Publish Powered By : XYZScripts.com