Template talk:D/main

Why the sub in the day check? The following code returns the day if parameter 2 is a numeric or if it is a three letter abbreviation. However, it returns 1 if the month is fully spelled out.

Why? Who knows. No problem- we can make it happy by chopping it off at 3 chars.

A similar thing happens with single digit day values if they are not zero padded, so there is an zero pad (sub -2) there.