How to set a time and date for Date/Time fields?

jglez1
Mega Guru

What's the correct format when setting a specific value for Date/Time fields? For example, the "closed_at" field

1 REPLY 1

Zach Koch
Giga Sage
Giga Sage

If you look at the docs, you would take whatever value you want to set in the field, convert it to a GlideDateTime object, then set that value to that. 

Here is a link to the Docs GlideDateTime docs 

Here is a screenshot of the relevant section 

ZachKoch_0-1718309368552.png

 

 

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!