Last Updated: May 10, 2016
·
2.323K
· dangtunglam

Ruby comparing date string

require 'date'
from = Date.parse('07/05/2016')
to = Date.parse('08/05/2016')
Date.today.between?(from, to)