in reply to Fast way to validate dates

Hmmm, no matter how long I spend researching an issue before I post it on SoW, I tend to discover it straight away once I've submitted the question. The answer is POSIX::strptime.