In the absence of a date picker node for dashboard 2, how easy would it be to make the ui-slider work as a date/time picker?
I suppose, in the background the range min and max could be set as epoch (in seconds?)
So
1721606400 is Monday, July 22, 2024 0:00:00
1721865600 is Thursday, July 25, 2024 0:00:00
For a date picker the step would be 86400
Here is an example showing 1 week, 2024-07-24 00:00:00 to 2024-07-31 00:00:00 with ticks at 86400 second intervals
Since step sizes 86400 and 3600 are a bit unlikely in any other context, they could trigger the node to automatically format the displayed value as a date YYYY-MM-DD or as a time hh:mm
I think that's the only change necessary, but a dropdown for min and max as date or time and for step size as 1hr or 1 day would make it easier to use.
Unfortunately, a small bug in UIBUILDER v6 means that using uibuilder.eventSend will not return the value, this is fixed in v7. But of course, you can use your own custom code that uses: