dicom_core::value::deserialize

Function parse_date

Source
pub fn parse_date(buf: &[u8]) -> Result<NaiveDate, Error>
Expand description

Decode a single DICOM Date (DA) into a chrono::NaiveDate value. As per standard, a full 8 byte representation (YYYYMMDD) is required, otherwise, the operation fails.