--- type: "fhirpath-function" title: "FHIRPath Function: dateOf" function: "dateOf" category: "Utility functions" section: "5.10.8.9" source: "fhirpath/functions.json" --- # FHIRPath Function: dateOf _No canonical section match found in index.md._ ## Summary - **Category**: Utility functions - **Section**: `5.10.8.9` - **Return Type**: `Date` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `true` ## Description If the input collection contains a single Date or DateTime, this function will return the date component (up to the precision present in the input value). ## Arguments - none ## Type Mapping - `Date-Date` - `DateTime-Date` ## Example ```fhirpath @2012-01-01T12:30:00.000-07:00.dateOf() // @2012-01-01 ```