Default value for date / time field

__17
Tera Expert

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".

1 ACCEPTED SOLUTION
4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

since it's a date/time type it will only only 1 value i..e 1 time

What's your requirement?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.

Community Alums
Not applicable

javascript:gs.now() + " 17:00:00 ";

 

I solved it by setting the above code to the default value.