I have Date Time Inputs on a perspective view. I want to bind the .value to ‘today’s’ date with a fixed time, to show that way on loading. These are shift start and stop times. They both, (date and time) should be changeable, if the user wanted to select a different day/shift. I would just like to default this way on page load.
There is Tag historical data bound to them as the start and end date.
I can use now() to get current date, but then it gives me the current time too…
the dateFormat I found in documentation:
dateFormat(now(), ‘yyyy-MM-dd 00:00:00’) //Returns the current date, but forces the time to 00:00:00.
is not working. I’m getting an error and no date populated in the input.
I’m wondering if there is another way, something doing wrong? Thanks much!