to_date_time method

to_date_time

Returns the property value as DateTime in local timezone.

def to_date_time(self):
    ...

Remarks

Throws an exception if the property type is not PropertyType.Date.

See Also