You will find that the DateTime type supports a number of static methods to check dates. For example, you can check whether a year is a leap year like this:
ReTweet this Tip!