Ruby comparing date string
require 'date'
from = Date.parse('07/05/2016')
to = Date.parse('08/05/2016')
Date.today.between?(from, to)
Written by dangtunglam
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Related Tags
#ruby
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#