Use EDTF: https://www.loc.gov/standards/datetime/ This might involve writing a parser, however... Or use https://github.com/inukshuk/edtf-ruby Or just support subset of EDTF standard, for now.