Purpose
Returns the current date and time. You can then access the Date and Time values using the GetDate() function and GetTime() function. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
CurDateTime()
Return Value
Example
Copy this example into the MapBasic window for a demonstration of this function.
dim X as datetime
X = CurDateTime()
Print X
See Also:
Day() function, Format$() function, Month() function, StringToDate() function, Timer() function, Weekday() function, Year() function, CurDate() function