Is there a way to require a numeric field year to be input as 4 digits instead of 2?

So users have to enter 1990 instead of 90