SFDB_EDATE

int __stdcall SFDB_EDATE(LONG argDate,


LPCSTR szPeriod,


PLONG retVal 

)

computed the date after a given a period (e.g. 1w, 1m, 3w, etc.)

Returns
status code of the operation
Return values
NDK_SUCCESSOperation successful
NDK_FAILEDOperation unsuccessful. See SFMacros.h for more details.
See Also
SFLUC_Shutdown()
Parameters
[in]argDatestart date expressed as number of days since 1.1.1970
[in]szPerioddescription of a period range (e.g. "5-days", "1 month", "1m", "3 w", "-1 year").
[out]retValthe calculated date that falls after the given period.
Examples:
dbm_rollover.cpp.
NDK_RETCODE EDATE(System.DateTime argDate,


string szPeriod,


ref System.DateTime retVal 

)

computed the date after a given a period (e.g. 1w, 1m, 3w, etc.)

Return Value

a value from NDK_RETCODE enumeration for the status of the call. 

NDK_SUCCESS  operation successful
Error  Error Code
Parameters
[in]argDatestart date expressed as number of days since 1.1.1970
[in]szPerioddescription of a period range (e.g. "5-days", "1 month", "1m", "3 w", "-1 year").
[out]retValthe calculated date that falls after the given period.
Remarks


Exceptions
Exception Type Condition
None N/A
Requirements
Namespace NumXLAPI
Class SFDBM
Scope Public
Lifetime Static
Package NumXLAPI.DLL
Examples
References
* Hamilton, J .D.; Time Series Analysis , Princeton University Press (1994), ISBN 0-691-04289-6
* Tsay, Ruey S.; Analysis of Financial Time Series John Wiley & SONS. (2005), ISBN 0-471-690740
* D. S.G. Pollock; Handbook of Time Series Analysis, Signal Processing, and Dynamics; Academic Press; Har/Cdr edition(Nov 17, 1999), ISBN: 125609906
* Box, Jenkins and Reisel; Time Series Analysis: Forecasting and Control; John Wiley & SONS.; 4th edition(Jun 30, 2008), ISBN: 470272848