<cDateTime> constructor

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Date and Time > cDateTime >

<cDateTime> constructor

 

Description

 

Instantiate a cDateTime variable.

 

Syntax

 

MyDateTime = New cDateTime

 

Returns

 

None.

 

Parameters

 

Name

Type

Optional

Meaning





 

Remarks

 

The new object will have date and time matching the object creation.

You can change these defaults via .NewDate, .NewTime or other methods and properties of cDateTime.

 

Restrictions

 

See also

 

Examples

 

' Create an object with current date and time

Dim myDateTimeA As New cDateTime

 

' Alternative form of instantiating the class variable

Dim myDateTimeB As cDateTime

myDateTimeB = New cDateTime