View raw Markdown
type: fhirpath-functionfunction: toDateTimecategory: Conversionsection: 5.5.5.1source: fhirpath/functions.json

FHIRPath Function: toDateTime

No canonical section match found in index.md.

Summary

Description

If the input collection contains a single item, this function will return a single datetime if the item is a DateTime, a Date, or a String convertible to a DateTime.

Arguments

Type Mapping

Example

'2022-01-01T12:00:00Z'.toDateTime() // returns @2022-01-01T12:00:00Z