Date Range Picker

2 Linked Date Pickers = 1 DateRange Picker

If you want a single field date picker instead, you can turn any datetime field into a dropdown datepicker now.

Attention

Please read the documentation for DatePicker first.

You will need two fields for this. It will work on datetime fields only, not on date fields. So please ensure you turn both fields you want to change into DateTime first.

Attention

This will work on datetime fields only, not on date fields. Please read the documentation for DatePicker first.

Syntax

new AppGiniFields( ["fieldname1", "fieldname2"] ).toDatepicker( "Label" );
// file: hooks/tasks-dv.js
new AppGiniFields( ["from_date", "to_date"] ).toDatepicker("Valid from/to");

Do you like it?