Difference between revisions of "Date.LongTime"

From Xojo Documentation

m (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")
Line 1: Line 1:
{{Deprecated|version=2019r2|replacement=[[DateTime.ToString]]}}
+
{{DeprecatedItem|version=2019r2|replacement=[[DateTime.ToString]]}}
 
{{PropertyBox
 
{{PropertyBox
 
| name=LongTime
 
| name=LongTime

Revision as of 19:05, 3 September 2020

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

Supported for all project types and targets.

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

Notes

For example (US format): 2:32:40 PM.

Sample Code

The following example displays the current time in the LongTime format.

Dim d As New Date
d.GMTOffset = -7

Label1.Text = d.Longtime