Difference between revisions of "DATE STOT()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) m (Text replace - "lianjaapi.h" to "lianja_api.h") |
||
Line 7: | Line 7: | ||
==SYNOPSIS== | ==SYNOPSIS== | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
DATETIME DATE_STOT(string) | DATETIME DATE_STOT(string) | ||
Line 25: | Line 25: | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
lianjaapi_date_stot() | lianjaapi_date_stot() |
Latest revision as of 06:49, 11 April 2013
PURPOSE
Return a character string as a datetime
SYNONYM
api_date_stot()
SYNOPSIS
#include "lianja_api.h" DATETIME DATE_STOT(string) <input parameters> char string; /* Address of a buffer containing character string */ <output parameters> none
DESCRIPTION
The DATE_STOT() function will return will return the specified string in the format "YYYYMMDDHHMMSS" as an unsigned long, the datetime format. This function can be used to convert data values for updating date memory variables.
EXAMPLE
The following example converts today's date specified in the character pointer date to a DATETIME.
#include "lianja_api.h" lianjaapi_date_stot() { DATETIME datetime; if (_parinfo(1) != API_TTYPE) { _retc(""); } datetime = DATE_STOT(_pards(1) ); }
SEE ALSO
_parts(), _retts(), ISDATETIME(), DATE_DATETIME(), DATE_TTOS()