This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Returns the number of days in the specified month and year.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(IsDeterministic = true)]
public static <int> GetDaysInMonth(
	 context,
	int year,
	int month
)
Visual Basic (Declaration)Copy imageCopy Code
<(IsDeterministic := True)> _
Public Shared Function GetDaysInMonth ( _
	context As , _
	year As Integer, _
	month As Integer _
) As (Of Integer)

Parameters

context
IContext
The context.
year
Int32
The year (1 through 9999).
month
Int32
The month (1 through 12).

Return Value

The number of days in the specified month in the specified year.

See Also

Advanced