F_GetMaxMonthDays

F_GetMaxMonthDays 1:

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

FUNCTION F_GetMaxMonthDays : WORD

F_GetMaxMonthDays 2: Inputs

VAR_INPUT
    wYear  : WORD;
    wMonth : WORD;
END_VAR

Name

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)