Fork me on GitHub
#fulcro
<
2020-07-15
>
murtaza5220:07:18

I am trying to generate an instant, took this snippet from fulcro-rad, but ti returns nil for me

...[com.fulcrologic.rad.type-support.date-time :as dt] ...

(dt/html-datetime-string->inst "2020-01-01T12:00") => nil

Jakub Holý (HolyJak)20:07:57

You will need to look at the implementation I guess...

daniel.spaniel17:07:08

you could do this ( not sure if it works for clojurescript though )

(clojure.instant/read-instant-date "2020-01-01T12:00")