android date time

import java.time.*;
LocalDateTime datetime = LocalDateTime.now(); 

4
8
Bernhard 140 points

                                    SimpleDateFormat.getDateTimeInstance().format(Date())

4 (10 Votes)
0
4.5
2
Mandar 100 points

                                    SimpleDateFormat.getDateInstance().format(Date())

4.5 (2 Votes)
0
3.43
7
SooDesuNe 95 points

                                    String dateStr = "04/05/2010"; 

SimpleDateFormat curFormater = new SimpleDateFormat("dd/MM/yyyy"); 
Date dateObj = curFormater.parse(dateStr); 
SimpleDateFormat postFormater = new SimpleDateFormat("MMMM dd, yyyy"); 

String newDateStr = postFormater.format(dateObj); 

3.43 (7 Votes)
0
3.25
4
Lorretta 100 points

                                    SimpleDateFormat.getTimeInstance().format(Date())

3.25 (4 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
android get date android java Date class how to get current date timestamp in android studio get date and time in android studio get date and time settings android data time android android simple date android java date get date from Date in android open date and time android studio date time android how to use datetime in android studio android java date time class android dates android date time library how to get datein android android datetime day get system date and time in android android studio get date and time getting time and date android how to set date and time in android studio android studio getting current date and time date class android android studio set date time android date and time tutorial android get date and time date android get date android studio fomat datetime in android get current date and time android android studio date and time class how to get current date and time in android studio get date and time android current date time in android android date calendar android date code how to get the date in android studio set date time android android get current date and time date picker in android date and time picker in android studio how to get date from android java get date on android android time date android example DateTime in android datetime android studio datetime android android date class date and time in java android android java datetime get date in android studio how to pick current date and time in android how to get current date time in android date time instance android studio get date and time in android programmatically get time and date in android get datetime in android date in android date in android studio how to get date in android studio android store date android date android datetime android date time date android studio android set date and time date time in android sdk 17 android date and time how to get date android studio getdate android studio get current date in android studio get current time in real time android studio get current time in android studio get current date inDATE android how to execute code in exact date android programmatically how to get current time in android studio android studio getcurrenttime how to get date and time android get current date in android current date java android get time and date from device how to get the current time in android studio how to show date time in android app selected by user get current date and time in java android how to get date in android get current date with time android studio android get Date() android get current date java get current date and time accoriding to india in android get current date and time accoridng to india in android get current time android get system time in android android current date and clock android live date and time view how to get time in android android get current date how to get current time android studio get automatic today date\ android java android get current time how to get date and time in android android datetime handling how to show date and time in android studio
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source