Date parsing invalid dates


(www.rboyapps.com - Make your home your butler!) #1

Anyone know why these work without throwing an exception?

Date.parse(“yyyy-MM-dd”, “2016-01-32”)
Date.parse(“yyyy-MM-dd”, “2016-00-99”)
Date.parse(“yyyy-MM-dd”, “2016-01-3u”)


(www.rboyapps.com - Make your home your butler!) #2

Guess it’s a groovy thing