Variant.DateTimeValue

From Xojo Documentation

Read-Only Property (As DateTime )
DateTimeValue = aVariant.DateTimeValue

New in 2019r2

Supported for all project types and targets.

Returns the value of the Variant as a DateTime.