<cDateTime>.TimeString

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Language > thinBasic Functions > Date and Time > cDateTime > cDateTime_Methods >

<cDateTime>.TimeString

 

Description

 

Returns time component of cDateTime object as text.

 

Syntax

 

<cDateTime>.TimeString

 

Returns

 

String in HH:MM AM/PM form, for example "02:45 PM"

 

Remarks

 

Restrictions

 

See also

 

Examples

 

' Create an object with current date and time

Dim myDateTime As New cDateTime

 

' Display time part of myDateTime as string

MsgBox 0, "myDateTime time:" + $CRLF + myDateTime.timeString