how to get current date time in android

Solutions on MaxInterview for how to get current date time in android by the best coders in the world

showing results for - "how to get current date time in android"
Elisa
06 Jun 2019
1Calendar c = Calendar.getInstance();
2SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
3String strDate = sdf.format(c.getTime());
4Log.d("Date","DATE : " + strDate)
Nico
18 Jul 2017
1import java.time.*;
2LocalDateTime datetime = LocalDateTime.now(); 
Maite
10 Apr 2016
1import java.time.*;
2LocalDate date = LocalDate.now();
Iker
03 Aug 2017
1String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date());
2
3// textView is the TextView view that should display it
4textView.setText(currentDateTimeString);
Tim
10 Sep 2018
1import java.util.Calendar
2
3Date currentTime = Calendar.getInstance().getTime();
Marco
18 Jan 2021
1  SimpleDateFormat sdf = new SimpleDateFormat("ddMMyyyy_HHmmss", Locale.getDefault());
2                String currentDateandTime = sdf.format(new Date());
3                System.out.println("currentDateandTime" + currentDateandTime);
queries leading to this page
get a date from a user android studiojava calendar todayandroid studio date 28 29 current timehow to get current date in calendar in java androidhow to get current time in androidandroid get timebest way to get current time in java androidandroid how to get current time in string in javasystem current time androiddate of today android javahow to get current date and time in android programmaticallyandroid current date time javaandroid get current time stringandroid get current date time and dateandroid localdatetimecalendar get current date androidget today date androidread system today date android time in android studioget current time in android javaandroid java get current dateandroid calendar current datehow to get the current date in android studioandroid java date timedisplay current time based on location android javaandroid studio get datehow to fetch current date in android javaandroid studio java datepicker get datehow to get system date in android studiohow to get only current date in androidandroid date get nowandroid system get current date timeandroid local datecurrenttime androidconsole current date time androidandroid timeget current date and time androidandroid studio get date and timeandroid studio getting current date and timeget date androidandroid calendar get current timeandroid get actual time instead of device timehow to get today date android javaget current date android codeget time in androidget current datetime by location android studioget real time and date java androidhow to get todays date androidandroid make new date objectandroid java get timejust get the current date androidhow get current time in androidtime android studiohow to get todays date in android studiojava get current timehow to get current time in android with javaget today 27s date java android studioandroid local timehow to get current date and time in android javais date today androidgetcurrent date java androidjava android get current timeget current datetime of city android studiocurrent time androidhow to get the current date in androidlocaldatetime androidget current time androidcalendar current date java androidget system time androidandroid use timeandroid dateget date and time in androidandroid current timeget current date time string java androiddate android 12current time in androidshow current date android studio android get exact current timeget actual date java androidgetting currenttime androidandroid studio get today dateget current time in jaavalocaltime androidandroid studio getting current date and timejava android current timeget todays date and time in android 3fget current date android studioandroid studio java date get dateandroid get current dateget current time android javaset current date androidandroid studio dateandroid studio get current timenew datepicker androidhow to get exact date and time java android studioandroid java get datehow to get todays date in androidtime object in androidget current date calendar androidget current time library androiddoes android 7 have localdatetimeget current date in android studiojava android get current time in secondsget system date and time in androiddate now androidcurrent date in androidandroid java get exact current timeandroid get today datecurrent date 2b 1 androidhow to get current time in android studiohow to get current time androidandroid calendar get current dateandroid how to get the current date and time in javahow to get current time and date with defualt formate androidhow to get current date and time in androiddate now on androidget current time hour androidtime 2fdate application in androidhow to get the date in android studioget current time in java androidget date android studiohow to get time and date in android studiohow to get current date in java androidhow to fetch current date and time in android javaandroid studio get current system timehow to get current date and time in android studioget system current date in java androidget now datetime androidget actual date androidget current year in android studioget current date and time in android programmaticallyget today date in android javaandroid studio get time and dateandroid studio get current dateandroid date nowget current time in androidcurrnt date in androidlocaldatetime format androidget current time in android studioget date java androiddate android stack overflowcurrent date set time androidget time android javaandroid studio current datehow to get current date in android studio javaandroid studio get current date timeandroid java get exact timeandroid library get current date and timeandroid studio timeandroid today datehow to get date android studiohow to set current date in android studioandroid getdateget todays date androidget date and time in android studiohow to get datein androidandroid java get current timeandroid studio java get date from a datepickerget today date in androidhow to get current date time android programaticalandroid 7 get date javaandroid full datecurrent date androidhow to get current date androidandroid get time and dateget date now androidandroid how to get system timeget time date in androidget today 27s date with date in androidhow to get current time stam in android javahow to get date time in androidandroid get date from userhow to get system time in androidhow to get today date in androidhow to get current date timestamp in android studio android get dateget current date and time in androiddisplay current date in android studiodate androidhow to get current date and time android studio javaget current datetime androidadd time in current date androidhow to get current system date only in androidshow the current date in androidandroid timing android java get date timeget datetime androidget current time android android get local timehow to get the current date in andoidandroid studio getting current dateget only time java androidandroid studio get current date and timeget date from calendar androidandroid 12 datecurrent date android studiohow to get current date in androidhow to get time and date androidhow to get currentdate androidandroid get system timeget current date androidandroid java get current date timeget current date in java androidget time androidget actual current time androidget current date in androidhow to get current date and time android studioudate picker in android exampleandroid get todays datehow to get date in androidandroid get system dateandroid studio get date nowdate in android studiotime and date in androidget current date in android javahow to get current date from calendar in androidcurrent date in android studioandroid java localdate from a date objectandroid get now timehow to get current date in android studioandroid calendar get current date timehow to get current date 2b android javahow to set current time in androidhow to get date in android studioandroid new dateandroid get today 27s datedisplay current date and time android studioandroid current dateandroid get current timeget current time java androiddatetime now androidget current date time android javaandroid get actual timehow to get current date time in androidget date from date in androidhow to get current time and date in androidhow to get system current time in android studioandroid date time pickerandroid date get current dateshow the current date and time in androidandroid get current date and time javaget time today android javaget date time in androidandroid studio date get current timehow to get current date time in android