OBLYTECH Logo
OBLYTECH Logo

ServiceNow Date Format: Changing It Through System Properties

The instance-wide date format in ServiceNow is set by a system property, not by a form setting. The date property is glide.sys.date_format and it defaults to yyyy-MM-dd. The time property, glide.sys.time_format, defaults to HH:mm:ss. Both live under System Properties in the System section, and each user can override them with a personal preference.

What the global date format controls

The global date format decides how dates appear across the instance for each user who has not chosen a personal format. Because one value covers everyone, a change lands on many people at once. That is the main reason to plan the pattern before editing it, and to test it before anyone else sees it. For where this kind of setting fits in the wider product, see the ServiceNow Platform Overview.

The same pattern also governs what a person types into a date field. The Validate date and time check covered further down is the step the official documentation calls for after any change to the pattern. A validation script of type glide_date_time can also reject typed entries that do not match a pattern it hard-codes, and that hard-coded pattern has to match the instance format, so the format affects data entry as well as display.

Where the setting lives

Open System Properties and go to the System section. Two properties matter for dates and times:

Setting Property name Default pattern Example output
Date display glide.sys.date_format yyyy-MM-dd 2026-11-06
Time display glide.sys.time_format HH:mm:ss 14:30:00

Change the value in the property record, save it, and then run the Validate date and time script. Do not skip that last step, because a pattern that looks right on paper can still fail once the instance tries to use it.

Reading the pattern letters

ServiceNow patterns follow the java.text.SimpleDateFormat conventions. The letters are case-sensitive, and two of them cause many of the mistakes people make:

  • MM is the month. mm is the minute.
  • yyyy is a four-digit year. yy is a two-digit year.
  • dd is the day of the month.
  • HH is the hour on a 24-hour clock. hh is the hour on a 12-hour clock.

A pattern written as yyyy-mm-dd looks almost right, but it puts minutes where the month belongs. The output will still be a date-like string, which is why the mistake can go unnoticed for a while. Read each letter against the table above before saving.

Why four-digit years are the safer choice

The yy form has a misreading window. With two-digit years, a value that falls 20 or more years in the future, or 80 or more years in the past, is read as belonging to the other century. If you set the year as 51 for 2051, the system reads it as 1951; four-digit years avoid that. Using yyyy removes that window, because the full year is present in the value.

So although yy looks tidy and shorter, it is the wrong choice for a field that people use to record real dates such as contract ends, renewal dates or due dates. Four digits cost a little more space and avoid a class of errors that can be hard to spot in a list view.

Setting the time format

Time uses the same pattern rules but has its own property. The default HH:mm:ss shows a 24-hour clock with seconds. If your users need a 12-hour clock, switch the hour letter to hh and add the letter a at the end of the pattern to show AM or PM.

Pattern Clock Output for 2:30 in the afternoon
HH:mm:ss 24-hour 14:30:00
hh:mm:ss a 12-hour with AM or PM 02:30:00 PM

Changing the time format does not change the date format, and changing the date format does not change the time. Each needs its own edit and its own check.

The time zone letter is not supported

A date pattern cannot include the time zone. You cannot append the letter z to a date pattern to show the zone, and appending z to the time format is not supported either. People often try this first because the zone is useful information, so it helps to know the limit up front.

When the resulting time zone is not three characters long, the Date/Time Validation Script, which is stored as the sys_script_validator record, fails and the user sees an Invalid Date error.

Personal preferences override the global format

The global format is the default. A user can replace it with a personal preference, and that personal choice wins for that user’s screens. This is useful when one team works in a different date style, but it also means a global change will not reach everyone. If a user reports that a date looks different from what the change should produce, check their personal settings before reverting the global property. For the broader question of when a setting like this is configuration rather than custom code, see ServiceNow Customization vs Configuration.

The time format has a clear personal path. Under All, open Self-Service, then My Profile, and set the Time format field. Changing it affects just the way time values appear to that user. It does not change the global setting, and it does not change how other users see time values. An administrator has to add the Time format field to the self-service view of the user form before the field is visible to users.

Validating a change before users see it

After any change to either property, run the Validate date and time script. It is the check that confirms the instance can read and write values in the new format. For the server-side API that handles these values, see the GlideDateTime API guide. Then test in a real form, not only in the property record. Use a field that holds a date alone and a field that holds a date and a time, because they cover different kinds of entry.

Test with a value you know the answer to. Enter a date you can verify, save it, reopen the record and confirm the displayed value matches the pattern you chose. Do the same with a value near a century boundary if your instance holds historical records, because that is where a two-digit year would have caused trouble.

When a value triggers Invalid Date

If users start to see Invalid Date on fields that worked before the change, check the pattern first. Typically the cause is one of three things: a yy year where a yyyy year was intended, mm used where MM was meant so that minutes replace months, or a z in the pattern. Correct the property, rerun the validation script and retest the same form. Start with the pattern, since the fault usually sits there rather than in the form. For how scripts read and write these values through the record API, see Glide Record Explained.

If the error appears for a single user, the cause is more likely a personal preference that does not match the global pattern. Compare the two settings for that user, then decide whether the personal value should be changed or left alone.

A sequence that keeps the change safe

Write down the current values of both properties before you change anything, so that you can restore them exactly. Decide the new pattern on paper and check each letter against the list in the pattern section. Change the global property in System Properties under the System section. Run the validation script and then test a date-only field and a date-and-time field, first as a user with no personal format and then as a user who has set one. After those checks pass, tell users what changed, and say whether their personal preference already overrides the new global value.

Keeping the old values written down makes a rollback a simple restore rather than a search for what the settings were before. For how a change like this is packaged and moved between instances, see Update Sets and Release Management.

Frequently asked questions

Which property controls the date format?

The global date format is controlled by glide.sys.date_format. Its default is yyyy-MM-dd. It is changed in System Properties under the System section, and users can override it with a personal preference.

Why does my time show in 24-hour format?

The default time pattern is HH:mm:ss, which uses a 24-hour clock. To show a 12-hour clock, change the hour letter to hh and add a at the end of the pattern so that AM or PM appears.

Can one user see a different format from everyone else?

Yes. A personal preference replaces the global format for that user alone. Changing a personal time format does not change the global setting or how other users see time values.

Why does a two-digit year show the wrong century?

A yy year is read as belonging to a window around the current date. A value 20 or more years in the future, or 80 or more years in the past, is read as the other century. Using yyyy avoids that problem.

Why does the validation script fail after I change the format?

The common causes are a z in the pattern, which is not supported, or a pattern that produces a time zone other than three characters. The Date/Time Validation Script then reports Invalid Date. Correct the pattern, rerun the validation and test the same form again.