Never extract a date using qr/\d\d/ to represent the day of the month. (Unless you have a spec to reference. Ha!) A date to many people is a \d+. In other words, some people (and even programs) represent the mday component of 2005-12-03 as simply " 3" or even "3" instead of the more proper "03".
Thankfully I at least followed my usual practice of using \s+ instead of " " between elements in the date string or I might have had even more confusion.