to_date_time method

to_date_time

Converts the metadata signature value to a datetime.datetime.

Raises an exception if the metadata value cannot be converted. If the original value is string‑based, the default culture from SignatureSettings.default_culture is used.

def to_date_time(self):
    ...

Returns: datetime.datetime: The metadata signature value as a datetime.datetime.

to_date_time

Converts the metadata signature value to a datetime.

Throws an exception if the metadata value could not be converted.

def to_date_time(self, provider):
    ...
Parameter Type Description
provider System.IFormatProvider Format data provider to use with data conversion operations.

Returns: datetime: The metadata signature value as a datetime.

See Also