DaysInMonth()

DaysInMonth()

Returns the number of days in month

Syntax

       DAYSINMONTH (<nMonth>, <lLeapYear>) -> nDaysInMonth

Arguments

<nMonth> Number of month

<lLeapYear> Is year is leapyear

Returns

<nDaysInMonth> days count in <nMonth>

Description

DaysInMonth() returns days count in <nMonth>

Examples

      ? DaysInMonth( hb_SToD( "20000101" ) ) // -> 31

      ? DaysInMonth( hb_SToD( "20000201" ) ) // -> 29

Compliance

DaysInMonth() is a new function in Harbour’s CT3 library.

Platforms

All

Files

Source is dattime2.prg, library is libct.

Seealso

DaysToMonth()

Advertisements

2 responses to “DaysInMonth()

  1. Pingback: Harbour Date & Time Functions | Viva Clipper !

  2. Pingback: Harbour All Functions – D | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s