Date.AbbreviatedDate

From Xojo Documentation

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

Supported for all project types and targets.

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

Notes

Changing the user’s system settings for this format will change the format that AbbreviatedDate uses. On Mac, the AbbreviatedDate property is controlled by the Medium format setting. On Windows, it is an abbreviated version of the Long Date format.

Sample ode

The following code displays the current date in the AbbreviatedDate format.

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