How to get current time and date in Android

0 votes
How can I get the current time and date in an Android app?
Feb 23 in Others by Soham
• 9,670 points
718 views

1 answer to this question.

0 votes

In order to get the current date and time, please use:

import java.util.Calendar 
Date currentTime = Calendar.getInstance().getTime();

answered Feb 23 by Aditya
• 7,660 points

Related Questions In Others

0 votes
1 answer

How to get current location in google map android

package com.example.sandeep.googlemapsample; import android.content.pm.PackageManager; import android.location.Location; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.ActivityCompat; import ...READ MORE

answered Jun 1 in Others by nisha
• 2,190 points
186 views
0 votes
2 answers

How to get the URL of the current tab in Google Chrome?

Its so simple.... If you want to ...READ MORE

answered Aug 12, 2020 in Others by Steve
• 200 points
1,310 views
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

How to get current time and date in Android?

How can I get the current time ...READ MORE

Nov 22 in Android by Edureka
• 10,880 points
12 views
0 votes
1 answer

How can one day be added to a date?

One possible solution could be using calendar ...READ MORE

answered Jun 8, 2018 in Java by Daisy
• 8,120 points
235 views
0 votes
1 answer

Get the Current time in Python

To get the current date and time ...READ MORE

answered Oct 3, 2018 in Python by SDeb
• 13,300 points
261 views
0 votes
1 answer

Python: Get current system/local time

You can use the datetime module for this. ...READ MORE

answered May 8, 2019 in Python by Suman
291 views
0 votes
1 answer

How do I get the current date and time in PHP?

The time would go by your server ...READ MORE

answered Feb 16 in Others by Aditya
• 7,660 points
112 views
0 votes
1 answer

How to get landmarks from current location using google map in iphone?

You can achieve this by saving several ...READ MORE

answered Sep 20 in Others by Aditya
• 7,660 points
58 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP