Questions tagged [android-datepicker]

Android DatePicker is a widget for selecting a date. The date can be selected by a year, month, and day spinners or a CalendarView. The set of spinners and the calendar view are automatically synchronized.

Android DatePicker is a widget for selecting a date. The date can be selected by a year, month, and day spinners or a CalendarView. The set of spinners and the calendar view are automatically synchronized.

Android DatePickerDialog is a dialog that hosts a DatePicker widget.

786 questions
-3
votes
4 answers

How to get day of week name from selected date month and year in Android?

I tried the below code but it gives me the name of the day of week two days ago. DatePicker picker; int date = picker.DayOfMonth; int month = (picker.Month + 1);//month is 0 based int year = picker.Year; SimpleDateFormat simpledateformat…
-3
votes
2 answers

How can i store a value from datepicker into database like this " Monday 02-10-2017?

I would store dates as timestamp into a database from datepicker into database with SimpleDateFormat("EEEE dd MMM yyyy"); this is my datepicker code : private void setDateTimeField() { Date.setOnClickListener(this); …
-3
votes
1 answer

How the datepickerdialog date you choose remains after the activity ends

Sorry for the Google translator What I want to implement is that the date that the user chooses is maintained even when the activity ends. So I hope the settings are retained when I rerun the activity. I tried SharedPreferences, String succeeded but…
-3
votes
2 answers

Cannot convert a date of MMM, dd yyyy to a dd/MM/yyyy in Android

I am trying to convert a date of MMM, dd yyyy to a format of dd/mm/yyyy in order to update a date picker but I get an error in parse method on the following: SimpleDateFormat format = new SimpleDateFormat("MMM, dd yyyy"); Date newDate =…
-3
votes
3 answers

Show Time Picker Dialog

How to implement date picker dialog like the one in the image below. Thanks in advance
-4
votes
3 answers

Subtract two datepickers in android

Is there any way to subtract two dates from picker. Example: I will select a date from picker1 and date from picker2. Then, picker2 - picker1 to get the number of days between these two dates. 20/10/2014 (-) 06/10/2014 -------------- …
uday
  • 1
  • 4
1 2 3
52
53