- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2022 09:11 AM
I have a catalog item variable with a default value of javascript:new GlideDate(); However, need to change the format to MM-DD-YYYY. Can someone let me know how to do that I am not verse in scripting and the help will be appreciated.
Thank you very much, Luis
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2022 09:27 AM
You can use below format:
var date= new GlideDate();
gs.info(date.getByFormat('dd-MM-YYYY'));
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2022 09:27 AM
You can use below format:
var date= new GlideDate();
gs.info(date.getByFormat('dd-MM-YYYY'));
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2022 09:38 AM
Got it Kumar,thank you for always help me and educate me in scripting.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2022 10:08 AM
Always a pleasure 🙂
Aman Kumar