Until hard typing comes along for HTML fields, that's the way it works on the
web. If you want to validate the values as date/time, then you need to create
Date objects in JavaScript from the text values held in the HTML fields. If you
check your HTML forms carefully, you'll see that all single-value "keyboard
entry" fields are text fields -- they can be type converted in JavaScript
(often implicitly rather than by casting methods) and will be converted to
Notes data types on submit.
Until hard typing comes along for HTML fields, that's the way it works on the web. If you want to validate the values as date/time, then you need to create Date objects in JavaScript from the text values held in the HTML fields. If you check your HTML forms carefully, you'll see that all single-value "keyboard entry" fields are text fields -- they can be type converted in JavaScript (often implicitly rather than by casting methods) and will be converted to Notes data types on submit.