Datetime.date readonly property



The Datetime.date property returns a string representing the "date part" of the moment, in the current local short format.

Example

-- get the current local date and time local dt = sys.Datetime() -- prints for example "01/01/2021" print(dt.date)