How to convert this start date time format "20241226T000000" into "2024-12-26 00:00:00".
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2024 03:20 AM
How to convert this start date time format "20241226T000000" into "2024-12-26 00:00:00". this format as i need to compare this to current planned start time. Could you please help me out over this.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2024 04:26 AM
var gdt = new GlideDateTime();
gdt.setDisplayValue("20241226T000000", "yyyyMMdd'T'HHmmss");
gs.info(gdt.getDisplayValueInternal());