DateTime.SQLDate

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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.Text = d.SQLDate