DATE DATE()
From Recital Documentation Wiki
Revision as of 11:04, 30 March 2009 by Yvonnemilne (Talk | contribs)
PURPOSE
Return the current system date
SYNONYM
api_date_date()
SYNOPSIS
#include "dbapi.h" char *DATE_DATE() <input parameters> none <output parameters> none
DESCRIPTION
The DATE_DATE() function will return the current system date as a character string. The date format returned is specified with the Recital SET DATE and SET CENTURY commands.
EXAMPLE
The following example stores the name of the month from today's date to the character pointer "month".
#include "dbapi.h" dbapi_date_date() { char *month; unsigned long date; date = DATE_CTOD(DATE_DATE() ); month = DATE_CMONTH( date if (!strcmp(month, "December") ) { /* commands */ } _retc(month); }
SEE ALSO
_parinfa(), _parinfo(), _pards(), _retds(), ISDATE(), DATE_AMPM(), DATE_CDOW(), DATE_CMONTH(), DATE_CTOD(), DATE_DAY(), DATE_DOW(), DATE_DTOC(), DATE_DTOS(), DATE_MONTH(), DATE_STOD(), DATE_TIME(), DATE_YEAR()