Eno::Loaders ยป #date

date โ†’ Time
date_items โ†’ array
date_list โ†’ array

Accepts YYYY-MM-DD and returns a Ruby Time object (or raises an error for invalid values).

enostart: 1992-12-01
end: 1994-03-04
invalid: 2018-03-14 13:10
rubydocument = Eno.parse(input)

document.date('start')  #=> #<Time>
document.date('end')  #=> #<Time>

document.date('invalid')
  # raises an error: 'invalid' must contain a valid date, for instance '1993-11-18'.