XLL+ Class Library (7.0)

CXlDate::Today

Get today's date

static long Today( );

Return Value

A serial date value (as used by Excel)

Remarks

This function calls Excel's TODAY() function.

Exceptions

If a call to the Excel API fails, then an exception of type CXlApiException will be thrown. Since this exception is derived from CXlRuntimeException, it will be caught by the add-in wrapper function when this method is called from within an add-in function.

Requirements

Header: xlldate.h

See Also

CXlDate Class | CXlDate Methods