F_GetMaxMonthDays

The function returns the maximum number of days in the month in a certain month and year.
FUNCTION F_GetMaxMonthDays : WORD
 Inputs
VAR_INPUT
    wYear  : WORD;
    wMonth : WORD;
END_VARName  | Type  | Description  | 
|---|---|---|
wYear  | WORD  | Year  | 
wMonth  | WORD  | Month (1 to 12)  | 
Return parameter  | Description  | 
|---|---|
0  | Error, wrong wMonth parameter value  | 
> 0  | No error. Maximum number of days in the month.  | 
Requirements
Development environment  | Target platform  | PLC libraries to be integrated (category group)  | 
|---|---|---|
TwinCAT v3.1.0  | PC or CX (x86, x64, Arm®)  | Tc2_Utilities (System)  |