Skip to content

Date Range Picker

Preview

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

Warning

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

Prerequisites

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.

Syntax

1
2
var dv = AppGiniHelper.dv;
dv.getFields(["fieldname1", "fieldname2"]).toDatepicker( "Label" );

Example

1
2
3
// file: hooks/tasks-dv.js
var dv = AppGiniHelper.dv;
dv.getFields(["from_date", "to_date"]).toDatepicker("Valid from/to");

See also: