On Jul 2, 6:54 am, Scott LaBounty <[email protected]> wrote: > What date format(s) is/are accepted if I want to use Sequel models and do a > Model.find.(date => "???"). It looks like for sqlite, I can do something > like 2009-01-07 (July 1st, 2009). Are there other formats that will / will > not work?
Generally, you should be passing in Date objects and not strings. If you are using strings, you should be using whatever type of format the database supports. For SQLite, since it doesn't have a native date type, the string you are using needs to exactly match what is stored in the database. Basically, if you use strings for dates, you are in database dependent behavior territory. Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
