DateTime.SQLDate
From Xojo Documentation
Read-Only Property (As String )
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.