<cDateTime>.Today

<< Click to Display Table of Contents >>

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

<cDateTime>.Today

 

Description

 

Sets the cDateTime variable date to today's date and resets time to 00:00:00.000.

 

Syntax

 

<cDateTime>.Today

 

Returns

 

None.

 

Remarks

 

Restrictions

 

See also

 

Examples

 

' Create an object with current date and time

Dim myDateTime As New cDateTime

 

' Set time to 30th December of 2000

myDateTime.NewDate(2000, 12, 30)

 

' Display current value

MsgBox 0, "myDateTime is now:" + $CRLF + myDateTime.toString

 

' Updates myDateTime time with today;s DATE and RESETS TIME to 00:00:00.000

myDateTime.Today

 

' Modified form

MsgBox 0, "Altered myDateTime is:" + $CRLF + myDateTime.toString