Custom Range is defined in JS and I would like to ad an option on date select that is like Custom Range Called Custom Date.
When I select Custom Date a single view calendar will open to chose a single date with 1 click.
I see how to add functions for different ranges and what Im trying to do is keep the user from having to click 2 times on the calendar to select a start and end date that is a single date.
The only example I see of dateRangePicker single date picker and I cant get it to work as a custom option?
https://www.daterangepicker.com/#example3 single date picker.
I dont know how to call this correctly as JS to create a Custom Date like Custom Range is in daterangepicker.js
this.locale = {
direction: 'ltr',
format: moment.localeData().longDateFormat('L'),
separator: ' - ',
applyLabel: 'Apply',
cancelLabel: 'Cancel',
weekLabel: 'W',
customRangeLabel: 'Custom Range',
daysOfWeek: moment.weekdaysMin(),
monthNames: moment.monthsShort(),
firstDay: moment.localeData().firstDayOfWeek()
};