Sounds trivial but seems to be harder than I thought: I want to set a date field in a SharePoint Online (should be compatible with 2016) form via JavaScript/JQuery:
$(myDateVieldInput).val('3/17/2018');
Works well, as long as the language is english. But other formats won't work. Is there a way to get the date format with JS or make SharePoint to accept the english format?
Actually SharePoint recognizes the date correctly, if you set the field with JQuery (no matter which format) and then click the date picker, it shows the correct date. But of course it should be possible to save the form without that. Maybe there is a way to trigger that artificially...
-thx