From Xojo Documentation

Read-Only Property (As String )
StringValue = aDate.ShortTime

Supported for all project types and targets.

Reports the date in the user's short time format as a string based on the user's locale and formatting even if the user’s locale is a Unicode-only locale.


This is an example of the short time (US format): 2:32 PM.

Sample Code

The following code reports the current time in the ShortTime format.

Dim d As New Date

Label1.Text = d.ShortTime