I was getting frustrated at some point that using {{ form.data }} wasn't working and I was confused why that would be a feature if the fields didn't provide their data in the correct format.
So, I am not sure where I was going with my question.
Hi @khill-fbmc! The Date component has new Date() has its default value, so its initial value is something like 2024-08-29T15:49:38.151-0700, but when you select a new date from the picker it sets it to something like 2024-08-01 (since there is no time associated with the date picker).
The Date Time component, by contrast, has a value like 2024-08-07T00:45:00.000 since you select a time instead of just a date.
What is the format you're expecting to be able to write to the database?
It might have been an issue when I have an optional date field in my form...
I think I might have had an input like date1.value = "" because it was cleared, or optional.
so then {{ form.data }} would have an empty string for date1. The DB was crying that "" is not a valid date, but I must have jumped over the fact that I might need to trim the props or convert "" to null before I send it.