Home Contents | # datetime:date | Date/Time | Core4 Lua Commands

## SYNOPSIS

d = datetime:date()

## DESCRIPTION

Returns the date part of datetime as a new date instance.

## ERRORS

Raises an error if date is not a datetime instance.

## EXAMPLE

> > > >
dt = clock.currentDateTime() d = dt:date() t = dt:time() print(d, t)
2009-08-06 10:33:41

## SEE ALSO

clock.currentDateTime, clock.newDateTime, clock.setDateTime, clock.tzget, clock.tzset, datetime(), datetime:addDays, datetime:addMonths, datetime:addSecs, datetime:addYears, datetime:base90, datetime:day, datetime:daysTo, datetime:format, datetime:hour, datetime:isNull, datetime:isValid, datetime:isdst, datetime:minute, datetime:month, datetime:msec, datetime:offset, datetime:second, datetime:secsTo, datetime:set, datetime:setBase90, datetime:time, datetime:toLocal, datetime:toUTC, datetime:year, datetime:zone, tostring(datetime)