Hi,
Am 28.07.2011 um 21:10 schrieb Brian Marick:
>
> On Jul 27, 2011, at 7:26 PM, Brian Marick wrote:
>> How *does* one provide dates to ClojureQL for transmission to Postgres? I
>> want to do something like this:
>>
>> (ql/conj! (ql/table :animals) {:official_name "fred" :added_to_service
>> <<<something that counts as a SQL Date>>>})
>
> Boy I was dumb yesterday:
>
>
> user> (ql/conj! (ql/table :animals)
> {:official_name "fred"
> :added_to_service (Date. (.getMillis (DateMidnight.)))})
Maybe just (.toDate (DateMidnight.))?
Sincerely
Meikel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en