Help needed set time 00:00:00 in date/time field value

Sowmya20
Tera Contributor

Hi,

 

I have a Date/time field [start_date] in the Change Request[change_request] table.

 

Requesting for a script to change the display in [start_date] to show the time as 00:00:00. So user can enter the as they wanted.

 

Thanks in advance.

Sowmya

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Sowmya20 

 

Not recommended to change the time to 00:00. OOTB it show current date/ time. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi,

 

Have the requirement to set time to 00:00:00 as change owner submitting form selecting date but without changing time of field.

 

Hello @Sowmya20 

Did you get any valid solution to this, I have a similar requirement and is there any challenges tampering with OOB time. 

Thanks,

Prithwish 

Amit Verma
Kilo Patron
Kilo Patron

Hi @Sowmya20 

 

Refer below link to achieve this.

https://www.servicenow.com/community/developer-forum/date-time-field-set-time-to-00-00-00-always/m-p...

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.