CurDate() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Returns the current date. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

CurDate()

Return Value

Date

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.