Date parser in ruby, without using Date