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:
[DateTime]::IsLeapYear(1904)
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: