We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Glide Date and Time APIs

ZebaT
Mega Guru

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 ACCEPTED SOLUTION

Mohammed8
Tera 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

View solution in original post

1 REPLY 1

Mohammed8
Tera 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