Question on removing seconds in the time display field

tjschmitt
Tera Guru

We have date and time fields on several forms in ServiceNow and in a majority of cases, the seconds field is not valuable information for us.   For example, when someone is scheduling a change, we're not tracking the change down to the second but from a system perspective, it's very helpful to see the seconds when reviewing log or audit statements.

 

From what I can tell, you can edit a system property to remove the seconds field but the change is universally applied in the application.   I was hoping that there would be some sort of field attribute where we could remove the seconds field on certain data / time fields in ServiceNow but it seems like you have to change the formatting for everything.

 

Anyone every remove the seconds from the date time format or have any advice on which way to go?   Better yet, is there a way to hide the seconds field for some fields?

5 REPLIES 5

rita_m
Tera Guru

You want to change the time format.   That effects both date and datetime fields.   The relevant system property is glide.sys.time_format, or find it in the System Properties->System area of the left nav bar.


http://wiki.servicenow.com/index.php?title=Using_Date_and_Time_Fields#Time_Format



Another question is "Can the duration fields be made to match?", but I have no answer for that.



-Rita


howard8
Tera Contributor

Hi Tim,


I have just had the same request and have the same problem. I don't want to make a global change but my users don't want to have to enter seconds into planned start and end date of changes.



Did you find an answer?



Howard


lss123
Tera Contributor

Anyone find an answer to this?   I'm having the same issue.   I want a datetime format that does not have seconds.


faro
Tera Expert

Hi,


I successfully replied to a similar question elsewhere in the community.
Here is the link: Is it possible to remove seconds from the Date/Time service catalog item variable?



But basically:


System Properties > System > Time Format


Remove off the :ss     (seconds), and that works fine.