extension to deal with ruby-date