Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to find today day in serverside scripting?

keerthilatha
Tera Expert

Hi Team,

How can we find out day in server side scripting.For example, in 2016-12-13, I want to print '13'. Is there any functions to get the day.

Thanks & Regards,

Keerthi

1 ACCEPTED SOLUTION

Just 2 lines will print the day of month: var gdt = new GlideDateTime(); gs.print(gdt.getDayOfMonth());


View solution in original post

5 REPLIES 5

Hey Abhijeet, Maybe this article can help you out:

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0759254