I get an error too.
But, in my case the problem is the language, my computer language is set to french.
I looked to see what I get with : Log(DateTime.Date(DateTime.Now)) > 17-févr.-2021
This: Log(DateTime.DateParse("22-FEB-2021")) throghs an error
This: Log(DateTime.DateParse("22-févr.-2021")) works, with this value: 1613948400000