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
• 8,730 points
186 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,280 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,160 points
17 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
717 views
0 votes
1 answer
0 votes
1 answer
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
196 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
233 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
246 views
0 votes
1 answer

Difference between datetime and timestamp in sqlserver?

Timestamp is a synonym for rowversion, according ...READ MORE

answered Feb 16 in Database by Vaani
• 7,020 points
407 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,280 points
27 views
0 votes
1 answer

how to get last insert id after insert query in codeigniter active record

To answer your doubt, try the following ...READ MORE

answered Feb 23 in Others by Aditya
• 7,280 points
233 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP