Date Parsing Strangeness
February 22nd, 2008
Calculating dates is arguably one of the most complicated parts of programming. Ruby eases the stress with some great tools to help parse and calculate dates.
But lately I’ve run into some really strange behavior, and I’m kind of at a loss. I’m posting it here in the hopes that somebody can shed some light on why this is happening.
Basically I’m getting inconsistent results with the different parsing libraries. I’d like to be able to pass dates like “2/22”, &