- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2020 12:57 PM
Hello,
I would like to strip out the time on the Due Date field for my Catalog Tasks.
My script to populate is very simple:
task.due_date = current.variables.requested_date.getDisplayValue();
Is there a way to strip out the time?
I have tried getLocalDate() and failed badly.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2020 08:26 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2020 06:48 AM
Another solution I have seen in the past is to create a new column type "Date" and tie it to the "date/time field" with a script to populate it with just the date from the "date/time" and show that on the form or whatever you need it for. That way it will always show just the date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2020 08:26 AM
Thank you Arthur, that is good advice.