Hi
How does one set a datetime field in JS for UCII?
The standard formContext.getAttribute("xxx").setValue(new Date()); doesn't seem to work anymore throwing a
Value should be of type: DateTime: Parameter Name: undefined
I have tried setting to UTC but to no avail. Any ideas?
Thanks
Charmaine
OMG i cant believe its that simple haha, thanks!
Try this
//Add today's date
var today = new Date();
formContext.getAttribute("new_assigntoengineeron").setValue(today);
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156