setDisplayValue is not converting this date format properly 'MM/dd/yy HH:mm:ss'
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 05:44 AM
When attempting to convert a string in this format 'MM/dd/yy HH:mm:ss' to 'yyyy-MM-dd HH:mm:ss' setDisplayValue does not return the proper year.
Example:
Original: 01/02/25 10:50:40
Returns: 0025-01-02 15:50:40
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 08:05 AM
please share your script
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader