Glide Date and Time APIs

ZebaT
Tera Contributor

Hello all,

I wanted to know does glide date and time are server or client based or can be used in both? I don't understand it straight forward like g_form or glide record APIs!!

Also do we have OOTB script include or utils which can extract date, day, leap year, weekend weekday something like that? 

 

Thanks

1 REPLY 1

Mohammed8
Giga Sage

Hi @ZebaT ,

 

GlideDateTime is server side. 

https://www.servicenow.com/community/developer-forum/can-we-use-glidedatetime-in-client-script-of-ui... 

 

I don't think there is OOTB script includes finding weekdays ,weekend, leap year  etc. You can create your own script include and use accordingly.

 

Here is official ServiceNow  official documentation:

https://www.servicenow.com/docs/bundle/zurich-api-reference/page/app-store/dev_portal/API_reference/...

 

Also @SumanthDosapati has explained in his article:

https://www.servicenow.com/community/developer-articles/the-unsung-apis-of-servicenow-2-glidedatetim... 

 

Thanks and Regards,

Mohammed Zakir