SFDB_NWKDAY

int __stdcall SFDB_NWKDAY(WORD weekdy,


short order,


WORD mnth,


WORD year,


PLONG retVal 

)

Returns the serial number of the n-th weekday in a month.

Returns
status code of the operation
Return values
NDK_SUCCESSOperation successful
NDK_FAILEDOperation unsuccessful. See SFMacros.h for more details.
See Also
FDB_WKDYOrder()
Parameters
[in]weekdythe weekday (i.e. 1=Sunday, 2=Monday, 3=Tuesday, ..., 7=Saturday)
[in]orderthe n-th occurence in the month (i.e. 1=First, 2=Second, 3=Third, 4=Fourth and -1=Last).
[in]mnththe month in the year expressed as a number (i.e. 1=Jan, 2=Feb, ..., 12=Dec).
[in]yearthe target year (2 or 4 digits) (e.g. 99, 2007, 2008, 09, etc.).
[out]retValthe calculated serial number of the n-th weekday in a month/year.
NDK_RETCODE SFDB_NWKDAY(UInt16 weekdy,


short order,


UInt16 mnth,


UInt16 year,


ref System.DateTime retVal 

)

Returns the serial number of the n-th weekday in a month.

Return Value

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

NDK_SUCCESS  operation successful
Error  Error Code
Parameters
[in]weekdythe weekday (i.e. 1=Sunday, 2=Monday, 3=Tuesday, ..., 7=Saturday)
[in]orderthe n-th occurence in the month (i.e. 1=First, 2=Second, 3=Third, 4=Fourth and -1=Last).
[in]mnththe month in the year expressed as a number (i.e. 1=Jan, 2=Feb, ..., 12=Dec).
[in]yearthe target year (2 or 4 digits) (e.g. 99, 2007, 2008, 09, etc.).
[out]retValthe calculated serial number of the n-th weekday in a month/year.
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