I\'m trying to rewrite the global Date function because I want to throw an error when calling Date function like this new Date(\'2021-01-01\')
Date
new Date(\'2021-01-01\')