Date

 

Variables of the Date data Type store a date and time. Internally, a date is represented by a decimal number. The integer value represents a date starting from 31.12.1899. Thus, for example, day 39778 is the 39778th day since 31.12.1899, i.e. 25 November 2008. Decimal places represent the time of a given day. Thus, 39778.5 is November 25, 2008 12:00:00,00 noon. Variables of Type Date can be expected as with decimal numbers.

 

In addition, the variable can take the value NoValue. If the "Initialize with default value" switch is set for class variables, the value is set to 0 when novalue is used to assign them.

 

Variables of Type Date are defined locally in functions as hereinafter (examples):

 

Dim Datum As Date

  

Datum := Now

MsgBox(ToLong(Datum))

 

Dim Datum As Date := Now

 

Attribute Properties and Functions:

 

Standard-Attributes:

AssignRuleIndex

Changed

Description

DifferingText

IsEnabled

IsVisible

ItemList

Name

SQLPrepare

Tag

UserTouched

Valid

ValueTag

ValueTagItems

 

Standard-Events:

AfterLet

BeforeLet

Get

Validation

 

Special Attributes:

 

 

More:

Day (Date)

FormatString (Date)

FormattedValue (Date)

Hour (Date)

LeapYear (Date)

Minute (Date)

Month (Date)

Quarter (Date)

Second (Date)

SetDateTime (Date)

SetTime (Date)

SQLPrepare (Date)

Week (Date)

Year (Date)