February 29 is an actual reporting date in Gregorian leap years. In a daily file it needs its own record or an explicit reason for missing data. Copying a common-year month template can shift labels after February.
A leap year usually divides by four. Century years must also divide by 400. Test 1900, 2000 and 2100 separately to verify a date import.
Use ISO week and ordinal labels to reproduce the main comparisons.
Use the selected Gregorian year
Compare March 1’s ordinal in a standard year and a leap year. The number rises from 060 to 061. Keep the actual calendar date independent of a filename based on days since January.
A worked record and its alternatives
The following examples compare observations a few calendar dates apart. Compare month boundaries and ISO labels so their conventions stay clear.
Calendar records for 27 December 2024 and 30 December 2024
Inspect 2024-12-27. 2024-W52 with weekday 5 · 2024-362. Inspect 2024-12-30. 2025-W01 with weekday 1 · 2024-365.
The ISO week and ordinal label describe different classifications. The week belongs to the year containing that week’s Thursday. The ordinal counts forward from 1 January inside the civil year. Neither label changes the original civil date.
The source anchors are 2024-12-27 and 2024-12-30. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
A reporter working from UTC timestamps should determine the desired local civil date first. A midnight rollover in the reporting zone can change the calendar key even though the original event instant remains fixed.
As a follow-up report field for 1 February 2028, store 2028-W05 with weekday 2 and ordinal label 2028-032. The first day of the containing civil month is Tuesday · 1 February 2028 and the last is Tuesday · 29 February 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 2 January 2025 and 6 January 2025
- Inspect 2025-01-02 · 2025-W01 with weekday 4 · 2025-002
- Inspect 2025-01-06 · 2025-W02 with weekday 1 · 2025-006
The source anchors are 2025-01-02 and 2025-01-06. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
As a follow-up report field for 2 February 2028, store 2028-W05 with weekday 3 and ordinal label 2028-033. The first day of the containing civil month is Tuesday · 1 February 2028 and the last is Tuesday · 29 February 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 29 December 2026 and 3 January 2027
The source anchors are 2026-12-29 and 2027-01-03. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
| Applied choice | Computed value |
|---|---|
| Inspect 2026-12-29 | 2026-W53 with weekday 2 · 2026-363 |
| Inspect 2027-01-03 | 2026-W53 with weekday 7 · 2027-003 |
As a follow-up report field for 7 February 2028, store 2028-W06 with weekday 1 and ordinal label 2028-038. The first day of the containing civil month is Tuesday · 1 February 2028 and the last is Tuesday · 29 February 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 10 February 2028 and 10 March 2028
Inspect 2028-02-10. Tuesday · 1 February 2028 to Tuesday · 29 February 2028 · 29 calendar days. Inspect 2028-03-10. Wednesday · 1 March 2028 to Friday · 31 March 2028 · 31 calendar days.
The source anchors are 2028-02-10 and 2028-03-10. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
The last Gregorian date is included in a monthly civil roster. If a source records timestamps, the first instant of the next month provides a cleaner exclusive endpoint for filtering events than a hand-written last second of this month.
As a follow-up report field for 10 February 2028, store 2028-W06 with weekday 4 and ordinal label 2028-041. The first day of the containing civil month is Tuesday · 1 February 2028 and the last is Tuesday · 29 February 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 27 December 2028 and 30 December 2028
Inspect 2028-12-27. 2028-W52 with weekday 3 · 2028-362. Inspect 2028-12-30. 2028-W52 with weekday 6 · 2028-365.
The source anchors are 2028-12-27 and 2028-12-30. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
As a follow-up report field for 15 February 2028, store 2028-W07 with weekday 2 and ordinal label 2028-046. The first day of the containing civil month is Tuesday · 1 February 2028 and the last is Tuesday · 29 February 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 2 January 2029 and 6 January 2029
- Inspect 2029-01-02 · 2029-W01 with weekday 2 · 2029-002
- Inspect 2029-01-06 · 2029-W01 with weekday 6 · 2029-006
The source anchors are 2029-01-02 and 2029-01-06. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
As a follow-up report field for 23 February 2028, store 2028-W08 with weekday 3 and ordinal label 2028-054. The first day of the containing civil month is Tuesday · 1 February 2028 and the last is Tuesday · 29 February 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Pros and cons of the approach
Pros. Verifying actual dates detects rollover and out-of-range inputs before a report is finalised.
Cons. A parsed date may be normalised by some systems instead of rejected. Independent validation is useful before using results that appear correct.
Records to compare before using this method
Compare the stated conditions and retain the date or instant associated with each reading.
| Recorded example | First setting | First result | Comparison setting | Comparison result |
|---|---|---|---|---|
| Calendar records for 29 December 2030 and 3 January 2031 | Inspect 2030-12-29 | 2030-W52 with weekday 7 · 2030-363 | Inspect 2031-01-03 | 2031-W01 with weekday 5 · 2031-003 |
| Calendar records for 15 March 2028 and 15 April 2028 | Inspect 2028-03-15 | Wednesday · 1 March 2028 to Friday · 31 March 2028 · 31 calendar days | Inspect 2028-04-15 | Saturday · 1 April 2028 to Sunday · 30 April 2028 · 30 calendar days |
| Calendar records for 27 December 2025 and 30 December 2025 | Inspect 2025-12-27 | 2025-W52 with weekday 6 · 2025-361 | Inspect 2025-12-30 | 2026-W01 with weekday 2 · 2025-364 |
| Calendar records for 2 January 2026 and 6 January 2026 | Inspect 2026-01-02 | 2026-W01 with weekday 5 · 2026-002 | Inspect 2026-01-06 | 2026-W02 with weekday 2 · 2026-006 |
| Calendar records for 29 December 2027 and 3 January 2028 | Inspect 2027-12-29 | 2027-W52 with weekday 3 · 2027-363 | Inspect 2028-01-03 | 2028-W01 with weekday 1 · 2028-003 |
| Calendar records for 10 June 2028 and 10 July 2028 | Inspect 2028-06-10 | Thursday · 1 June 2028 to Friday · 30 June 2028 · 30 calendar days | Inspect 2028-07-10 | Saturday · 1 July 2028 to Monday · 31 July 2028 · 31 calendar days |
| Calendar records for 27 December 2029 and 30 December 2029 | Inspect 2029-12-27 | 2029-W52 with weekday 4 · 2029-361 | Inspect 2029-12-30 | 2029-W52 with weekday 7 · 2029-364 |
Keep raw values and corrected labels beside each other in a sample migration.
What belongs in the final record
Calendar records for 2 January 2030 and 6 January 2030
Inspect 2030-01-02. 2030-W01 with weekday 3 · 2030-002. Inspect 2030-01-06. 2030-W01 with weekday 7 · 2030-006.
The source anchors are 2030-01-02 and 2030-01-06. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
As a follow-up report field for 20 August 2028, store 2028-W33 with weekday 7 and ordinal label 2028-233. The first day of the containing civil month is Tuesday · 1 August 2028 and the last is Thursday · 31 August 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 29 December 2024 and 3 January 2025
- Inspect 2024-12-29 · 2024-W52 with weekday 7 · 2024-364
- Inspect 2025-01-03 · 2025-W01 with weekday 5 · 2025-003
The source anchors are 2024-12-29 and 2025-01-03. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
As a follow-up report field for 4 October 2028, store 2028-W40 with weekday 3 and ordinal label 2028-278. The first day of the containing civil month is Sunday · 1 October 2028 and the last is Tuesday · 31 October 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 28 November 2028 and 28 December 2028
Inspect 2028-11-28. Wednesday · 1 November 2028 to Thursday · 30 November 2028 · 30 calendar days. Inspect 2028-12-28. Friday · 1 December 2028 to Sunday · 31 December 2028 · 31 calendar days.
The source anchors are 2028-11-28 and 2028-12-28. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
As a follow-up report field for 28 November 2028, store 2028-W48 with weekday 2 and ordinal label 2028-333. The first day of the containing civil month is Wednesday · 1 November 2028 and the last is Thursday · 30 November 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 27 December 2026 and 30 December 2026
Inspect 2026-12-27. 2026-W52 with weekday 7 · 2026-361. Inspect 2026-12-30. 2026-W53 with weekday 3 · 2026-364.
The source anchors are 2026-12-27 and 2026-12-30. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
As a follow-up report field for 22 December 2028, store 2028-W51 with weekday 5 and ordinal label 2028-357. The first day of the containing civil month is Friday · 1 December 2028 and the last is Sunday · 31 December 2028. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Calendar records for 2 January 2027 and 6 January 2027
- Inspect 2027-01-02 · 2026-W53 with weekday 6 · 2027-002
- Inspect 2027-01-06 · 2027-W01 with weekday 3 · 2027-006
The source anchors are 2027-01-02 and 2027-01-06. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
As a follow-up report field for 29 January 2029, store 2029-W05 with weekday 1 and ordinal label 2029-029. The first day of the containing civil month is Monday · 1 January 2029 and the last is Wednesday · 31 January 2029. The weekday and ordinal are deterministic from the complete date. For a timed report, resolve the timestamp in its reporting region before choosing any of these fields.
Questions readers may need to resolve
Does 1900 have 29 February under Gregorian rules?
No. It divides by 100 and fails the 400-year exception.
Why does March 1 change ordinal position?
A leap date adds one preceding day at the end of February.
Should I fill missing leap data with March 1?
A missing observation and a date transcription correction are different actions. Keep the missing date visible.
What do I use for a historical local calendar?
Verify or convert the source date if its original region used another civil calendar.
Can a common year have ordinal 366?
No. Its final ordinal is 365.
What stays fixed in the Calendar records for 29 December 2030 and 3 January 2031 comparison?
The source example stays fixed while the method changes from Inspect 2030-12-29 to Inspect 2031-01-03. The first reading gives 2030-W52 with weekday 7 · 2030-363 and the comparison gives 2031-W01 with weekday 5 · 2031-003. The source anchors are 2030-12-29 and 2031-01-03. Preserve the calendar or reporting convention alongside these whole dates before deriving the label.
Which details let me reproduce the Calendar records for 10 June 2028 and 10 July 2028 example?
The source anchors are 2028-06-10 and 2028-07-10. Preserve the calendar or reporting convention alongside these whole dates before deriving the label. A reporter working from UTC timestamps should determine the desired local civil date first. A midnight rollover in the reporting zone can change the calendar key even though the original event instant remains fixed.
How should I read the result in the Calendar records for 27 December 2029 and 30 December 2029 example?
The ISO week and ordinal label describe different classifications. The week belongs to the year containing that week’s Thursday. The ordinal counts forward from 1 January inside the civil year. Neither label changes the original civil date.