Back
coerce-to-local-date-time (clj)
(source)function
(coerce-to-local-date-time t)
Does its best to convert t into a java.time.LocalDateTime object.
Accepts:
- java.time.LocalDateTime and java.time.LocalDate
- java.util.Date (on the JVM)
- Strings in 'yyyy-MM-dd' and 'yyyy-MM-ddTHH:MM:SS' formats
- js/Date
Throws an Exception if unable to convert.