Guides / ISO 8601 dates in SDTM, in plain words
ISO 8601 dates in SDTM, in plain words
SDTM keeps dates as text in ISO 8601 form, so a date collected as "about March 2024" can be stored as exactly what you know, and nothing more.
The ISO 8601 date format SDTM uses
| What you know | How you write it |
|---|---|
| Date and time | 2024-03-15T09:30 |
| Date with seconds | 2024-03-15T09:30:45 |
| Date only | 2024-03-15 |
| Month and year | 2024-03 |
| Year only | 2024 |
| Year and day, month unknown | 2024---15 |
Leave off what you don't know from the right. When a part in the middle is missing, SDTM puts a dash in its place, as in the last row.
Durations in ISO 8601
Durations (in --DUR variables, for example) start with P: P2D is two days, PT4H is four hours, P1Y6M is a year and six months.
Date mistakes a check catches
- Dates that look right but don't exist, like 2023-02-29 or 2024-04-31.
- Other formats, like 15MAR2024 or 03/15/2024.
- An end date before the start date.
- Study days (--DY) that don't match the date and RFSTDTC.
- Events dated after the subject left the study.
Our checker tests every date against the calendar, not just the pattern, and compares dates only at the precision both have, so 2024-03 isn't called "before" 2024-03-15.
How study day is counted
Study day counts from the reference start date (RFSTDTC in DM). The start date is day 1, the day before is day -1, and there is no day 0. A full date is needed on both sides to work out a study day.
Questions about ISO 8601 dates in SDTM
Can an SDTM date be partial?
Yes. Write only what you know, such as 2024-03 for March 2024. Don't make up a day.
Why is there no study day 0?
SDTM counts the reference start date as day 1 and the day before it as day -1, so day 0 doesn't exist.
Do time zones matter in SDTM dates?
Most studies leave them out. Our checker ignores time zones when it compares two dates.
This guide is general information to help you understand the standards. It isn't official FDA or CDISC guidance; read the published documents for your submission.