local nYear,nMonth,nDay,nDayOfWeek = getdate ()
Returns the current date as four values: year, month, day, and day-of-the-week.
Gettime
Windows API - GetSystemTime function