Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 09:18 PM
the expected output is 2005-01-31 but I'm getting 0036-06-27. how to resolve this?
Solved! Go to Solution.
Labels:
- Labels:
-
HR Service Delivery
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 11:17 PM
Hi Kukunooru,
Use the following in background script;
var gd = new GlideDateTime();
gd.setValue('31-03-2005');
gs.print(gd.getDate());
*** Script: 2005-03-31
Hopefully, this will resolve your query.
20 REPLIES 20
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 03:27 AM
Hi Muhammad! it is working now.
instead of setValue(), I have used setDisplayValue()