This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Returns the number of days in month specified in cDateTime variable.
Syntax
<cDateTime>.DaysInMonth
Returns
Number, days in month of cDateTime variable month.
Remarks
Restrictions
See also
Examples
' Create an object with current date and time
Dim firstDateTime As New cDateTime
' Set its values
firstDateTime.NewDate(2020, 1, 1) ' January 1st 2020
' Create another object with current date and time
Dim secondDateTime As New cDateTime
secondDateTime.NewDate(2020, 2, 1) ' February 1st 2020
' Display date part of myDateTime as DD.MM.YYYY string
MsgBox 0, "firstDateTime" + firstDateTime.toString + " days in month: " + firstDateTime.daysInMonth + $CRLF +
"secondDateTime" + secondDateTime.toString + " days in month: " + secondDateTime.daysInMonth + $CRLF