[DateRangePicker] From where do I get the dates I've selected?

Forge Component
(7)
Published on 2019-01-02 by Niels Favreau
7 votes
Published on 2019-01-02 by Niels Favreau

Hello Everyone,

I started to use this component today because it suits my needs. However I've been looking and I can't find a simple way to get both dates separated (StartDate - EndDate) to filter my query. There's anyway simple to do that?

The way I'm implementing now is to substr de values and build a date, but this doesnt look correct to me since the component should be doing this already, right? What am I missing here?

Thank you,

TG

Hi Tiago,

Please have a look at the Demo page. where the widget is requires you to pass start date and end date(local variables)

Regards,

Rama

Hi Seera,

You're right but those are the default dates.If I change the period on the input those variables will not get the values chosed and that is the problem. Even on the demo you can setup the Defaults Start and End Date however if you chose another period on the input the Start and End Date below are not refreshed with the new values.

Regards,

TG