Description
Parse a real Gregorian date and select year, month, or day precision.
Personal health and activity records use supplied observations, labels, and time intervals. A formatter or simple summary can organize those records without assessing health, diagnosing a condition, or recommending treatment.
Parse a real Gregorian date and select year, month, or day precision.
When to use this tool
Use Personal Health Export Date Precision Mask when you need a bounded personal-record calculation with explicit units and date conventions.
How to use the tool and how it works
- Enter date, precision. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read text. Use the output convention below.
Parse a real Gregorian date and select year, month, or day precision. Return the corresponding leading date components.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| date | Gregorian date in the exact accepted precision and grammar. | Required. Text; maximum UTF-16 length 8192. |
| precision | Precision | Required. Text; one of "year", "month", "day"; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| text | Text | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"date": "2026-10-26",
"precision": "month"
},
"output": {
"text": "2026-10"
}
} Limitations and assumptions
- Reducing displayed precision does not anonymize a person or enforce privacy rights, and it does not alter or verify the source record.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Review the original observations and consult an appropriate health professional for clinical interpretation or care decisions.
References
Similar or alternative tools
- FHIR Date Partial Precision Envelope
Parse YYYY, YYYY-MM, or real YYYY-MM-DD in years 0001-9999.
- Activity Log Manual Device Duplicate Key
Validate a real Gregorian date and startMinute in 0-1439, then serialize date, activity, and startMinute as a JSON-array key.