Purpose
Returns the current date. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
CurDate()
Return Value
Description
The Curdate() function returns a Date value representing the current date. The format is YYYYMMDD, where YYYY is the year, MM is the month between 01 (January) and 12 (December), and DD is the day of the month between 01 and 31.
To change the value to a string in the local system format use the FormatDate$() function or Str$() function.
Example
Dim d_today As Date
d_today = CurDate()
See Also:
Date and Time Functions, CurDateTime() function, CurTime() function, Day() function, Format$() function, Month() function, StringToDate() function, Timer() function, Weekday() function, Year() function