asDatetimeOrNull

Casts this AttributeValue as a Datetime and retrieves its kotlin.String value. Returns null if the AttributeValue is not a Datetime.