From Xojo Documentation

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

Xojo.Core.Date.Now() As Xojo.Core.Date

Supported for all project types and targets.

The current date and time (local timezone).

Sample Code

Get the current date and time:

Var d As Xojo.Core.Date = Xojo.Core.Date.Now