Get range from datarangepicker

1 reply · opened Jun 14, 2017

RrigauxDJun 14, 2017

Hi !

I want to use a daterangepicker with the time on it. I was now wondering how I could retrieve the time interval. And is it possible to retrieve at the same time the start and the end time and date ?

I can't seem to find how to do it ... Or do I have to do it the hard way ?

Thanks
David

SSemicolon WebSTAFFJun 25, 2017

Hello,

Thanks for your Patience!

The Date Range Picker already supports Time in the Range. Please check out the DATE AND TIME RANGE PICKER: Example on the Demos: http://themes.semicolonweb.com/html/canvas/component-datepicker.php . Consider using the following code to have a Time Range on the Same Dates:

$(".daterange2").daterangepicker({
	"opens": "center",
	locale: {
		format: 'MM/DD/YYYY h:mm A'
	},
	"timePicker": true,
	"timePicker24Hour": true,
	"timePickerSeconds": true,
	"startDate": "06/19/2017",
	"endDate": "06/19/2017",
	"minDate": "06/19/2017",
	"maxDate": "06/19/2017",
	"buttonClasses": "button button-rounded button-mini nomargin",
	"applyClass": "button-color",
	"cancelClass": "button-light"
});

You can also generate your own Date Range Picker here: http://www.daterangepicker.com/#config .

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard