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
0
votes
3 answers

Date Picker with cancel option in android

Is it possible to have a date/time picker that has a Cancel/Set options in place of a single Set command. My usecase is that when i click on the date picker and the field is not mandatory, i might want to clear the selected value. My code looks…
lokoko
  • 5,785
  • 5
  • 35
  • 68
0
votes
1 answer

How do I pass back a date to an Activity from a DialogFragment / DatePickerFragment?

I know how to do this with Intent, but how do I do this.... Here is the code I have to open the DatePickerFragment: DialogFragment newFragment = new DatePickerFragment(); Bundle bundle = new Bundle(); bundle.putString("date", (String)…
0
votes
1 answer

Components that DatePicker is composed from

What's the name of the components that DatePicker and TimePicker are composed from? (a field with arrows that change its value - have a look at the picture below). Is something like this already accessible (I cannot find it in the list of components…
rmaruszewski
  • 2,407
  • 1
  • 21
  • 21
0
votes
3 answers

How to fix NoClassDefFoundError occured while using a third party library in our application?

I am using android wheel to select date and time in my application. but i am fed up with this NoClassDefFoundError while using this library. I included wheel.jar in the libs folder, but still i get error at runtime. Here is the logcat…
Raneez Ahmed
  • 3,808
  • 3
  • 35
  • 58
0
votes
2 answers

Storing, retrieving and sorting records by time and date

I think I may be asking too much in a single post, so let me know if I should break this up into separate questions for date and for time, but utilising date and time in a database has me completely stumped. I've looked into the various methods…
Ronnie
  • 357
  • 4
  • 15
0
votes
1 answer

Show TimePickerDialog or DatePicker in a custom view

Times ago I developed a custom datetime picker control. This custom picker control was developed by inheriting from LinearLayout class and has got some features like "declare-styleable" attributes to set properties at design-time, a set of…
GiveEmTheBoot
  • 534
  • 9
  • 24
0
votes
1 answer

Android DatePickerDialog yields incorrect values

My problem at present is that the values obtained from the DatePickerDialog are not getting parsed correctly when I send them to the Date constructor. Getting the date values (as per the suggestions from another post).... private…
Anna Lam
  • 777
  • 2
  • 11
  • 28
-1
votes
1 answer

Error While creating Date Picker in Android?

i got this error while creating date picker in android "Syntax error on tokens, AnnotationName expected instead" public class Insert extends Activity { private Header header; private EditText etName; private EditText etAge; …
Smith
  • 11
  • 2
-1
votes
1 answer

MaterialDatePicker : how to set custom today

I want to set custom today to the MaterialDatePicker. But it getting the system date by default. Any idea?
-1
votes
2 answers

Date Picker Dialog Not Working Changing In One Text Make Change To Another

I want to gat date in textview by using DatePicker Dialog. I have get Current date in the EditText As the Activity open. I have Implemented the DatePicker Dialog on the EditTexts but When I try to change the date by Clicking on Edit Text, It make…
user11507886
-1
votes
1 answer

Computing the dates but the dates are from Date Picker which has the method of getDateInstance

I need to compute the days between two dates. However, the format of dates from text view are different from SimpleDateFormat. For example, after picking date from the dialog, the date that will display is April 22, 2019. However, I cannot compute…
Reymand
  • 41
  • 1
  • 7
-1
votes
2 answers

How do I convert my date string to a custom date format?

I am currently working on creating a custom date format such that it is supposed to show as "Monday, April 8, 2019 " but whenever I pick from dialog and apply simple date format, it returns the date with abbreviated month and time (which I don't…
user2386226
-1
votes
1 answer

Android: Datepicker bottom part not visbile

I am adding a DatePicker widget in my Layout. I am using spinner type. But a small part of widget is not visible. I am using layout height as wrap_content I have tried changing layout_height attribute values but of no use.
Abhay
  • 524
  • 1
  • 13
  • 28
-1
votes
1 answer

DatePickerDialog Issue in Android

I am unable to see the initials of Day in DatePickerDialog What I want is : The code I am using for showing dialog is : DatePickerDialog dialog = new DatePickerDialog(context, startingDateSetListener, …
CodeGeek
  • 677
  • 2
  • 8
  • 22
-1
votes
2 answers

Date picker dialog not showing in android fragment

I want to show date picker dialog inside a android fragment. I have found some examples but i am not getting it properly. I have two edit text (called R.id.event_start_time_a & R.id.event_end_time_a) and when i click on it, the date picker dialog…
Hendy
  • 265
  • 1
  • 6
  • 27