From Xojo Documentation

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

Supported for all project types and targets.

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


For example (US default format): Wednesday, December 31, 1997. The LongDate property uses the Long format on Windows and the Full format on Mac. Changing the user's system settings for these formats changes the format that the LongDate property uses.

Sample Code

The following example displays the current date in the LongDate format for the user’s operating system.

Dim d As New Date
Label1.Text = d.LongDate