Skip to content

CDS

Returns Current Date in SQL String Format

This system variable returns the current date and time in SQL string format.

CDS

This system variable is a string value and may be used in string expressions.

LET TODAYS_DATE$ = CDS

At noon on 07-JUN-1989, TODAYS_DATE$ contains the value:

“07-JUN-1989 12:00:00”

The SQL date format is corrected for leap years, including century multiples.

DTN and NTD functions
CDN system variable

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF