I don't understand the difference between Glide Date Time and Glide Date.

Ereshkigal
Tera Contributor

Hi.

Please tell me the difference between Glide Date Time and Glide Date as a coding beginner.

As far as I can tell, I think it's related to getting the timezone, but I'm not sure.

Also, I feel that GlideDateTime is basically used. Is there a good case where GlideDateTime is bad and GlideDate is good?

Thank you!

10 REPLIES 10

Hi,

Real time example for change_request table

You want to calculate difference between planned start date and planned end date

Both are of type date/time so you would use GlideDateTime here for calculation

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader