code to get date and time in android

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

3
1
Swapnilsarwe 115 points

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

3 (1 Votes)
0
0
0
Question Ask 120 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); 

0
0
4
2
Toby Y. 95 points

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

4 (2 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 how to get current date timestamp in android studio get date and time in android studio get date and time settings android get date from Date in android open date and time android studio how to get datein android get system date and time in android getting time and date android how to set date and time in android studio android studio getting current date and time android get date and time get date android studio get current date and time android how to get current date and time in android studio current date time in android android date code how to get the date in android studio android get current date and time how to get date from android java get date on android date and time in java android get date in android studio how to pick current date and time in android how to get current date time in android get date and time in android programmatically get time and date in android get datetime in android how to get date in android studio 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