DateTime.SQLDateTime

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.SQLDateTime

New in 2019r2

Supported for all project types and targets.

Returns the date in SQL date/time format, YYYY-MM-DD HH:MM:SS.

Notes

This is an example of an SQL date/time: 2019-09-03 13:39:16

Sample Code

The following code displays the current SQL date/time.

Var d As DateTime = DateTime.Now
Label1.Text = d.SQLDateTime