- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 06:55 AM
I'm looking for a way to set a default time value for the Date / Time field I created in a table.
Prepare two date / time fields, start and end.
I want to set the default start value to "00:00:00".
I want the default value for termination to be "23:59:59".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 06:58 AM
Hi,
Refer to this thread:
and
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 06:58 AM
Hi,
since it's a date/time type it will only only 1 value i..e 1 time
What's your requirement?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 04:58 PM
I want to set the time in the Date / Time field to the default value.
I have listed the code that was resolved in another answer.
Thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 06:58 AM
Hi,
Refer to this thread:
and
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 04:56 PM
javascript:gs.now() + " 17:00:00 ";
I solved it by setting the above code to the default value.