comparison between different times
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 05:42 AM
Hey
How do I reverse the string - '18:00:00'
for the time 18:00:00
for comparison between different times.
Thanks. Shir

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 06:02 AM - edited 06-18-2024 06:06 AM
You can use the OOTB method of GlideDateTime(). Take a look at the linked page for different methods.
Here is a link to the docs
GlideDateTime docs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 06:12 AM
I tried but it doesn't work, can you help me with the solution please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 06:09 AM
what's your business requirement here?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 06:16 AM
I need to convert the string '18:00:00' to a time
So that I can reduce the times
I need to subtract '18:00:00' from the time in the sys_updated_on field and check if it is greater than or equal to the value of the property I defined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 06:38 AM
@Ankur BawiskarWould appreciate help