Unit 'Variants' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

VarToDateTime

Convert a variant to datetime value.

Declaration

Source position: variants.pp line 101

function VarToDateTime(

  const V: Variant

):TDateTime;

Arguments

V

  

Variant to convert.

Function result

Variants as date/time value.

Description

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

Errors

If the value is Null, an exception is raised.

See also

VarToUnicodeStr

  

Convert a variant to string value.

VarToStrDef

  

Convert a variant to string value, specifying a default.

VarIsStr

  

Check if the variant is a string.

VarToWideStr

  

Convert a variant to string value.

VarToWideStrDef

  

Convert a variant to string value, specifying a default.

VarFromDateTime

  

Create variant from TDateTime value.


Documentation generated on: Oct 27 2024