Date return on Datepicker in another format

Asked

Viewed 41 times

0

I’m new in android development, and tried to work with the datepicker for a job, but when I see the date returned is returned so:

Sun Mar 01 00:00:00 GMT 2020

I would like to stay 01/03/2020 to enter in the database and make it easier to understand

What could I do?

  • I never worked with Datepicker, but depending on the return is only use SimpleDateFormat and move on to the style you want

  • How are you getting the date?

  • How so? I get this way: Sun Mar 01 00:00:00 GMT 2020 But I wanted to receive only the date, type: 01/03/2020

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.