In chrome - I don't know in other browser (and I don't care for this time, but answer are valid for any of them) - if you didn't set the whole date (e.g. missing the hour and minutes --:--), the value of the input is empty...
how can I know what not-empty values was inserted? or chrome waits to set the value of the input until all the fields are all set?
I thinked a brutal method that I don't like: set a default value (e.g. today or 1/1/1970), then chrome has to set the value of the input, then all the values are ok even if the user don't set the date manually.
<input id="INPUT" type="datetime-local" name="ciccio">
The render is something like
**-**-**** --:--
where * are field for the day,month,year.
If you type this:
12-03-2013 --:--
and requesting the value of the INPUT by javascript
console.log($('#INPUT').val());
//the result is "" (nothing).
but something has been inserted