Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2016 03:59 AM
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
Solved! Go to Solution.
Labels:
- Labels:
-
Scripting and Coding
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2016 04:10 AM
Just 2 lines will print the day of month: var gdt = new GlideDateTime(); gs.print(gdt.getDayOfMonth());
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2023 05:28 PM
Hey Abhijeet, Maybe this article can help you out:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0759254