Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2022 11:50 AM
how we can use getByFormat() in scoped application. iam using date field, i need to extract that date in "YYYY-MMM-dd" format
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2022 12:29 PM
Hello,
getByFormat() works in scoped application. Example:
var gd = new GlideDate();
gd.setValue('2021-04-21');
gs.info(gd.getByFormat("YYYY-MMM-dd"));
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2022 12:29 PM
Hello,
getByFormat() works in scoped application. Example:
var gd = new GlideDate();
gd.setValue('2021-04-21');
gs.info(gd.getByFormat("YYYY-MMM-dd"));
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!