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
You can use TTime::IsLeapYear() to check whether a given year is leap one or not. A leap year has 29 days on February.