<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Date and Time > cDateTime > cDateTime_Methods > <cDateTime>.TimeString24 |
Description
Returns time component of cDateTime object as text in 24 hour format.
Syntax
<cDateTime>.TimeString24
Returns
String in HH:MM form, for example "14:45"
Remarks
Restrictions
See also
Examples
' Create an object with current date and time
Dim myDateTime As New cDateTime
' Display time part of myDateTime as 24 hour format string
MsgBox 0, "myDateTime time:" + $CRLF + myDateTime.timeString24