DateTime.SQLDate

From Xojo Documentation

Read-Only Property (As String )
StringValue = aDateTime.SQLDate

New in 2019r2

Supported for all project types and targets.

Returns the date in SQL date format, YYYY-MM-DD.

Notes

This is an example for a SQL date: 2019-09-03

Sample Code

The following code displays the SQLDate value for the current date.

Var d As DateTime = DateTime.Now
Label1.Value = d.SQLDate