Is it possible to remove seconds from the Date/Time service catalog item variable?

JennyHu
Tera Guru
Tera Guru

I have two Date/Time variables on a service catalog item for the client to select a start date/time and an end date/time for when they would like to receive the service.   The seconds do not provide much value and are defaulted to the current running second.   Is it possible to remove the seconds or default them to 00?

Thanks,

Jenny

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

While you cannot remove them, you can modify the value with a client script or business rule to change them to 00 after entry.



Reference:


Business Rules - ServiceNow Wiki


Business Rules Best Practices - ServiceNow Wiki


Docs: Client Scripts


Client Script Best Practices - ServiceNow Wiki      


 


View solution in original post

7 REPLIES 7

Chuck Tomasi
Tera Patron

While you cannot remove them, you can modify the value with a client script or business rule to change them to 00 after entry.



Reference:


Business Rules - ServiceNow Wiki


Business Rules Best Practices - ServiceNow Wiki


Docs: Client Scripts


Client Script Best Practices - ServiceNow Wiki      


 


Okay, thanks Chuck.   I wish the seconds are not displayed on the UI for a number of reasons.   First, it clutters up the interface; more digits to read.   Second, on mobile list view, the real estate is limited. So I need to modify with a script to get rid of the seconds.   Just more scripts to maintain I guess.



I'm curious to know which service industries are actually needing seconds in their UI. For everything we do, it seems like we only care about date, hours and minutes.  


Hello chuck,

How to remove the seconds using BR or client script? I have similar requirement can you please help me out.

 

faro
Tera Expert

System Properties > System > Time Format


I knocked off the :ss     (seconds), and it looks to me it has worked.   Can one or more of you test and confirm?