One moment can be written three ways: 1999/12/31, 23:59, or 12/31/99T11:59PM. A time may display in 12-hour format while the value returned is in 24-hour format, so a PM screen and a 24-hour export can match. Date controls keep entries uniform.
Three ways to write the same minute
The last minute of the previous millennium can be written three ways: 1999/12/31, 23:59, or 12/31/99T11:59PM. The MDN Web Docs page on HTML5 input types lists all three in one example. Each form carries different information, and a customer success manager who types or exports account dates will meet all three styles across different tools.
This post explains what each form shows, why a displayed time can differ from the value a form returns, how date controls reduce entry errors, and what to check before copying a date from one system into another. It also covers a few practical points from the W3C and Section508.gov guidance on labels and accessible spreadsheets.
Big takeaways
- The MDN example gives three written forms for the last minute of the previous millennium: 1999/12/31, 23:59, and 12/31/99T11:59PM.
- While time may display in 12-hour format, the value returned is in 24-hour format.
- Date controls provide calendar widgets and make the data uniform.
- Week 1 of each year contains the first Thursday of that year.
- A label is presented to all users, while the name may be hidden and exposed only by assistive technology.
- A date and time control collects dates, times, or both, depending on the type value it is given.
What each written form shows
Each listed form shows a different part of the moment. The first gives a date with the year first. The second gives a time on the 24-hour clock with no date attached. The third gives a date with the month first and a time marked PM, so it carries both values in one string.
| Listed form | Date part | Time part | Clock style |
|---|---|---|---|
| 1999/12/31 | 1999/12/31, year first | None | Not shown |
| 23:59 | None | 23:59 | 24-hour |
| 12/31/99T11:59PM | 12/31/99, month first | 11:59PM | 12-hour, marked PM |
The letter T in the third form sits between the date and the time, so a reader can see where one part ends and the other begins. The first two forms do not need that separator because each one carries only one kind of value.
Reading order matters. The first and third forms describe the same calendar day, but they arrange the year, month, and day differently. A reader who scans quickly can take the first two numbers of a string as the month in one tool and as the day in another. Before you accept a value, check where the year sits in the string, and confirm that it matches the convention the tool uses.
Does a 12-hour display change the returned value?
No. The MDN Web Docs page says that while time may display in 12-hour format, the value returned is in 24-hour format. A screen can show a clock style that people read easily while the underlying value follows a different convention.
| Item | Clock style | What the MDN page says |
|---|---|---|
| Displayed time, 11:59PM | 12-hour | May display in 12-hour format |
| Returned value | 24-hour | The value returned is in 24-hour format |
| Same last minute written as 23:59 | 24-hour | Listed as another way to express that minute |
The example lists 11:59PM and 23:59 as ways to express the same last minute. One moment can therefore appear in two clock styles without changing. When a field shows PM and an exported value reads 23:59, the two can match. Do not edit one to make it look like the other until you have confirmed the match.
This also explains a common support question. A person sees PM on the screen, opens an export, and finds a 24-hour value. Nothing has gone wrong in that case. The screen and the stored value are two presentations of the same moment, and only a mismatch between them would signal a real problem.
Checking a displayed time against its value
Start with the source of the value. If you can open an export in plain text, look at the time column before changing anything. Compare a few rows that the screen shows in 12-hour form with the corresponding rows in the file. If the file uses 24-hour values for the same moments, the two sources agree even though the screen and the file look different.
A short checklist helps when you do this by hand:
- Confirm which column holds the date and which column holds the time. Some exports keep them in separate fields, and others combine them in one string.
- Read the year position in each value. A value that starts with a four-digit year and one that ends with a two-digit year are not arranged the same way.
- Keep a copy of the original values before you edit anything. If a later check fails, you can compare against the untouched source.
- Paste values rather than retyping them. Retyping introduces the chance of swapping the day and month, or of dropping the PM marker.
- Write down the check you ran, the file name, and the date you ran it. When a value is questioned later, that short record shows whether the mismatch came from the display or from the data.
These steps do not depend on any single tool. They apply whenever a date or time moves from one screen to another, or from a screen into a file.
Why typed dates are hard to parse
According to the MDN page, date controls let users select dates without needing to context switch to a native calendar application, and without potentially entering them in differing formats that are hard to parse. The phrase "hard to parse" means that a person or a program has trouble working out what a string says.
A string written with the day first can look a lot like one written with the month first. When two people type the same kind of value in different habits, the column ends up holding a mix of conventions. Cleaning that mix up costs time, and mistakes can slip through unnoticed because most values look plausible on their own.
Consider how a reviewer would check such a column later. If every value follows one order, a single rule can confirm the whole column in one pass. If the order varies, the reviewer has to check each value by hand, and that work often gets skipped under deadline pressure. The cost of typed entry is therefore not only the time spent typing. It is also the checking that a mixed column forces on someone later.
Typed entry is not wrong in every case. It becomes a risk when many people enter dates into the same field and no one has agreed on an order. A team that exports data for reports should set one convention and check new entries against it.
What a date control adds
The MDN page says HTML date controls are available to handle this specific kind of data. They provide calendar widgets and make the data uniform. The table below compares typed entry with date and date-time controls.
| Option | What the MDN page says it does | Result named in the quotes |
|---|---|---|
| Typed date | Users may enter dates in differing formats | Formats that are hard to parse |
| Date control | Provides calendar widgets so users select dates | Uniform data |
| Date and time control | Collects dates, times, or both | Returned value in 24-hour format while a time may display in 12-hour format |
The difference between the first and second rows is the difference between guessing a format and choosing a date from a calendar. A control that returns a consistent value saves the person entering the data from having to decide how to write it.
A calendar widget also limits what a person must remember. They do not need to recall whether the team writes months first, or whether a time should carry a PM marker. The control handles that step, and the person only chooses a day or a time. For a busy manager updating many accounts, that reduces both the number of decisions and the number of places where a slip can happen.
The third row is the one to watch when a form shows a clock. The displayed time may follow a 12-hour style, but the value sent on from the form follows the 24-hour convention described above. Keep that in mind when you compare a screen with an export.
Which control collects dates, times, or both?
The MDN page explains that a date and time control is created using the input element and an appropriate value for the type attribute, depending on whether you wish to collect dates, times, or both. The type value sets which of those the field collects, so the same element can be configured for a date only, a time only, or both together.
You do not need to write code to benefit from this. If your team uses a tool you did not build, ask the person who manages it which field type holds the date and which holds the time. A field that looks like a date picker but returns only a time, or the reverse, will produce values that cannot be combined without rework.
When you request a form change, describe the data you need in plain terms. Say that you need a date only, a time only, or both, and say which clock style you will read on screen. That description gives the developer enough to choose the right type value.
What week 1 contains
The MDN page says week 1 of each year contains the first Thursday of that year. It may not include the first day of the year. It may also include the last few days of the previous year.
This matters when an export groups accounts by week number. A date in the last few days of a year can land in week 1 of the following year, so its calendar year and its week year differ. A weekly report that uses week numbers may therefore place a few accounts in a week that looks surprising.
When you build a weekly view, check the year alongside the week number. Reports that show only the week number can hide the boundary cases, and those are the accounts most likely to be questioned later. A simple test is to pick one account whose start date falls in the first days of January and one whose date falls in late December, then see which week and year each lands in on the report. If the two results match what you expect from the MDN rule, the grouping is working.
Why field labels matter
The W3C page on Success Criterion 2.4.6, Headings and Labels, states that a label is presented to all users, whereas the name may be hidden and only exposed by assistive technology. The W3C guidance makes the difference clear: the visible label is what people read, while the hidden name is what assistive technology announces.
For a customer success manager, the practical point is simple. A vague label can lead to a date going into the wrong field. If a label reads "Date" but the field actually collects a renewal time, the value will look valid and still be wrong. When a form is unclear, ask for the label to say exactly what the field holds before you enter a value.
Labels also help when you export and import data. A header in a spreadsheet that says "Start date" should match the field the value came from. Mismatched headers are a common reason values end up in the wrong place.
The accessibility baseline cited by Section508.gov
The Section508.gov page on accessible spreadsheets points readers to this reference: "Microsoft Excel 2010 Baseline Tests for Accessible Electronic Documents (DOCX)." The title pairs a spreadsheet program, Microsoft Excel 2010, with a file format, DOCX. Those two pieces point to different kinds of files, so a reader should not assume the reference covers every format a spreadsheet might be saved in.
If a date-heavy export has to meet an accessibility requirement, look up this reference at its source before relying on it. Write down the version named in the title, the file type it names, and the page where you found it. Then check that the file you are sending matches the type the reference names. A short citation like this is easy to skim past, so the record of what you checked is the part that protects you later.
You can find the page itself on Section508.gov. Read it directly rather than working from a summary, especially when the question involves a file type that is not named in the title.
Which one should you pick?
The right choice depends on what the field needs to collect and how the value will be used.
- If you are collecting a date, pick a date control instead of a free-text field. The MDN page says it provides calendar widgets and makes the data uniform.
- If you are collecting a date and a time together, pick a date and time control. The page says it collects dates, times, or both.
- If you are matching a displayed 12-hour time to a stored value, use the 24-hour form as the reference. The MDN page says the value returned is in 24-hour format.
- If the field will feed a weekly report, confirm the year as well as the week number, because week 1 can include days from the previous year.
- If the field's purpose is unclear, ask for the label to be improved before you enter data. The W3C guidance treats the visible label as the one that every user sees.
Common problems in exported dates
Exports tend to fail in a few predictable ways. The first is a column that mixes conventions. One row may show a day-first string, while the next shows a month-first string. Sorting such a column can put dates in the wrong order, and a filter can silently drop values that do not match the pattern it expects.
The second problem is a time column that uses both clock styles. The MDN example shows that a single moment can be written with PM or with a 24-hour value. A column that holds both needs a rule for which style it uses, and the rule should be written in the export notes.
The third problem is a date that loses its time when it moves between tools. If the destination field collects only dates, the time component is dropped. For account work, that can change which day a renewal or a cancellation appears on, so check the destination's field type before importing.
The fourth problem is week-based grouping near the new year. The MDN statement about week 1 explains why. A report that groups by week number should be read together with the year.
A round trip is a good test of all four. Export a small sample, import it into the destination, and export it again. Compare the two exports row by row. Any change in the date order, the time, or the year points to a field that needs attention before the full data set moves.
Related guides: Customer kickoff form: 3 date fields to set up · Sign-up form fields: 5 checks before first login · Accessible password fields: 8 settings to check.
Reader questions
Are 1999/12/31 and 12/31/99 the same date? They describe the same day, but the parts appear in different orders. The first puts the year first, while the second puts the month first. The MDN example lists 1999/12/31 and 12/31/99T11:59PM as ways to express the same last minute of the previous millennium, along with 23:59.
Why does my time field show PM when the value is 24-hour? The display and the stored value follow different clock styles. The MDN page explains that a time may display in 12-hour format while the value returned is in 24-hour format. The PM on screen is a presentation choice, and the underlying value keeps the 24-hour convention.
Do date controls make data uniform? The MDN page says date controls provide calendar widgets and make the data uniform. Users pick dates from the calendar instead of typing them, which avoids the differing formats the page warns about.
What goes wrong when users type dates? Typed entry can produce differing formats that are hard to parse. The problem grows when several people enter values into the same column without a shared convention, because the column ends up holding a mix that no single rule can read cleanly.
How many written forms does the MDN example give? The example gives three written forms for the last minute of the previous millennium. Those forms are 1999/12/31, 23:59, and 12/31/99T11:59PM.
Should I check the year when I group by week? Yes. The MDN page notes that week 1 contains the first Thursday of the year. A week number on its own can therefore land an account in the wrong annual group.
Who sees a field's label? The W3C guidance says a label is presented to all users. The name can be hidden and is exposed only by assistive technology, so a clear visible label is the part that every user relies on.
Sources
Limits of this post
This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.