×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    Malaysia-Johor-Pontian Kecil
    Posts
    163

    How to get the maximum day in a month by given year and month ?

    Hi,

    I want to create a calender canvas. But I don't know how to get the maximum day by given year and month. Eg: Feb's maximum day is 28 or 29. Using Date and Calender can get the information I want ? If yes, please guide me how to make it. Thanks

    kok chai,
    http://www.geocities.com/akokchai/

  2. #2
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985
    You can use TTime::IsLeapYear() to check whether a given year is leap one or not. A leap year has 29 days on February.

    Antony

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×