VarToDateTime

Convert a variant to datetime value

Declaration

Source position: variants.pp line 94

  function VarToDateTime(const V: Variant) : TDateTime;

Description

VarToDateTime attempts to convert the variant V to a TDateTime value.

Errors

If the value is Null, an exception is raised.

See also

Name Description
VarFromDateTime Create variant from TDateTime value.
VarIsStr Check if the variant is a string
VarToStrDef Convert a variant to string value, specifying a default
VarToUnicodeStr Convert a variant to string value
VarToWideStr Convert a variant to string value
VarToWideStrDef Convert a variant to string value, specifying a default