On Tue, Sep 18, 2018 at 5:59 AM, Joe Guerra <jgue...@jginfosys.com> wrote:
> todaydate = Time.new > > todaydate = todaydate.year.to_s + "-" + todaydate.month.to_s + "-" + > todaydate.day.to_s > > and the column for enddate is a date type. Aside from the potential problem of redefining the same variable, I'd avoid trying to compare a DB `date` with a String, but in this case -- Sqlite3 doesn't have a `date` type so you might want to spend a few minutes here: https://www.sqlite.org/datatype3.html HTH! -- Hassan Schroeder ------------------------ hassan.schroe...@gmail.com twitter: @hassan Consulting Availability : Silicon Valley or remote -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yANQfJPrbONT-QfdGMEG_9bfkvoC9Yie4PkVuceo9cpcA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.