When trying to set the initial date, the following code works (the date and time are selected properly), but throws an error.
While I'm using date.value.format("HH") for the hour value, I should be able to use date.value.hour(). However, when I use the hour function, the current hour is not selected.
When trying to set the initial date, the following code works (the date and time are selected properly), but throws an error.
While I'm using
date.value.format("HH")
for the hour value, I should be able to usedate.value.hour()
. However, when I use thehour
function, the current hour is not selected.The error:
The error corresponds to the following code block: