try re with clojure.core/re-matches
On Tue, Mar 13, 2018 at 12:14 PM, Didier wrote:
> (defn valid-mmdd?
> [date]
> ;; Here's the code that you would use in Java, but using Clojure
> interop, which needs to return true/false if valid.
> ;; So an example:
> (try
(defn valid-mmdd?
[date]
;; Here's the code that you would use in Java, but using Clojure interop,
which needs to return true/false if valid.
;; So an example:
(try (let [format (java.time.format.DateTimeFormatter/ofPattern
"MMdd")]
(java.time.LocalDate/parse date
Any idea how can I use in Clojure spec?
Thanks!
Bijay
On Mon, Mar 12, 2018 at 9:02 PM, Didier wrote:
> Do it as you would in Java, using Clojure/Java interop.
>
> If you paste the Java code for how you'd do it, we can help you convert it
> to Clojure interop code.
>
>
> On
Do it as you would in Java, using Clojure/Java interop.
If you paste the Java code for how you'd do it, we can help you convert it
to Clojure interop code.
On Monday, 12 March 2018 15:28:27 UTC-7, pbi...@gmail.com wrote:
>
> I am java certified professional.Currently I am working Clojure I am
I need to process Effective Date by reading the data.
At that case how I can do from clojure? Any idea please.
Logical Data Element: Term Effective Date
Required: MMDD
On Mon, Mar 12, 2018 at 6:53 PM, John Jacobsen
wrote:
> Have a look at clj-time:
Have a look at clj-time: https://github.com/clj-time/clj-time
In particular the clj-time.format namespace.
Cheers!
John
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from
I am java certified professional.Currently I am working Clojure I am
still learning clojure.
I am trying to validate date ( MMDD) using clojure. Any one have idea
how can I validate?
Thanks!
Bijay
--
You received this message because you are subscribed to the Google
Groups "Clojure"