F_GetMaxMonthDays

F_GetMaxMonthDays 1:

The function returns the maximum number of days of the month in a certain month and year.

FUNCTION F_GetMaxMonthDays: WORD

VAR_INPUT

VAR_INPUT
    wYear  : WORD;
    wMonth : WORD;
END_VAR

wYear: Year.

wMonth: Month (1 to 12).

Return parameter

Description

0

Error, wrong wMonth parameter value

> 0

No error. Maximum number of days of 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)