Android Question Datedialog Max/Min Date? AnotherDatePicker extension

seanfogg

Member
Licensed User
Longtime User
Hi is there any way of setting the Minimum and Maximum dates selecable using the datedialog box? I can obviously parse the date after it has been selected but would rather restrict the user from selecting invalid dates in the first place. I've searched the forum and found nothing.

Thanks
Sean
 

seanfogg

Member
Licensed User
Longtime User
Ok, tried to code a SetMinDate and SetMaxDate for the normal datedialog box using the javaobject but nothing doing on that one so have modified the AnotherDatePicker class to include this option, also added a SetDateFormat method as well as a lot of the planet doesn't use the "MM/dd/yyyy" format ;-)

Syntax

AnotherDatePicker.SetMinDate
(date in ticks) as long
AnotherDatePicker.SetMaxDate(date in ticks) as long
AnotherDatePicker.SetDateFormat (date in string format e.g. "dd/MM/yyyy") as string

Hope this helps.
Sean
 

Attachments

  • AnotherDatePickerV21.zip
    13.6 KB · Views: 277
Last edited:
Upvote 0
Top