how can i set an event time via a userEvent script...
# suitescript
p
how can i set an event time via a userEvent script? I have tried a few different ways:
calendarEvent.setValue('starttime', '0900');
calendarEvent.setValue('starttime', '9:00');
calendarEvent.setValue('starttime', '900');
but none seem to work.
e
starttime
is a Time field, which requires a
Date
instance for the value. Create a
Date
instance with the time of day you want, and use that
p
👍