I get from the user, the date he sets in a DatePickerDialog. The date i get is in this format:
int selectedYear, int selectedMonth, int selectedDay
Can i format it to be like this "Day, Month dd, yyyy" as shown in the picture below?
I get from the user, the date he sets in a DatePickerDialog. The date i get is in this format:
int selectedYear, int selectedMonth, int selectedDay
Can i format it to be like this "Day, Month dd, yyyy" as shown in the picture below?
You can Try This:
Here you can see details and all supported format:
http://developer.android.com/reference/java/text/SimpleDateFormat.html
Using the values returned from picker
Use a
SimpleDateFormat
to format the date: