Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.29 KB

File metadata and controls

20 lines (14 loc) · 1.29 KB

ValidDate hard

by ch3cknull @ch3cknull

Take the Challenge

Implement a type ValidDate, which takes an input type T and returns whether T is a valid date.

Leap year is not considered

Good Luck!

ValidDate<'0102'> // true
ValidDate<'0131'> // true
ValidDate<'1231'> // true
ValidDate<'0229'> // false
ValidDate<'0100'> // false
ValidDate<'0132'> // false
ValidDate<'1301'> // false

Back Share your Solutions Check out Solutions