Unable to Change date field type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 11:27 PM
@Ankur Bawiskar @Community Alums @Sohail Khilji @Maik Skoddow or anyone please help
How can I clear only the time value using the script in the attached screenshot in DATE/TIME value instead I should display only the DATE Value

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 11:30 PM
Hi there,
That's not possible, simply because these are date/time fields. For what you are after, you need a date field. You can't just clear the time scripted.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 11:30 PM
Basically this is not possible. If a field is of type "Date/Time" then the time portion will also be included. You could create a new field of type "Date", however that way you would have some efforts in synchronizing the value back to the original fields.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 11:37 PM
Hi @ARAVINDA11
Use the date type field.
Thanks
dgarad