Join Slack
Powered by
In suitescripts, how could we add hours to Time of...
# suitescript
b
Boris Yasen
03/09/2023, 7:05 PM
In suitescripts, how could we add hours to Time of day field?
b
battk
03/09/2023, 8:07 PM
time of day fields use a Date as the value
battk
03/09/2023, 8:08 PM
get the Date value of the field, use
getHours
to get its hours add whatever hours you wanted to add, then
setHours
to set that value back on it
battk
03/09/2023, 8:08 PM
and then finally set that Date as the value of the field
b
Boris Yasen
03/10/2023, 12:28 AM
Thank you
3
Views
Open in Slack
Previous
Next