Changing the Date Format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 03:18 AM
Hello!
The system date format in our instances is YYYY-MM-DD. Is there a way to change this to MM-DD-YY without changing the system date format?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 03:26 AM - edited 04-20-2023 03:29 AM
Hello @ramirch ,
Yes you can change the instance Date format.
Follow below:
All>Basic Configuration UI16
Select the format you want.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 03:29 AM
@Priyanka0402, I want to change the date format for a specific application or module only. I do not want to update the date format for the instance. Is this possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 04:04 AM - edited 04-20-2023 04:07 AM
Hello @ramirch
You can use the below code to format the date to MM-DD-YY
var date= new GlideDate();
//replace new GlideDate() with the incoming date
var date2 = date.getByFormat('yyyy/MM/dd');
//now use the date2 to set the field value as you want
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards
Priyanka