Groovy web console

subscribe to the feed Subscribe
to this
site

Who killed Date.toInstant()?

Published 2 months ago by musketyr with tags puzzler
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
println format(new java.sql.Date(11, 11, 11))
static String format(Date date) {
    java.time.format.DateTimeFormatter.ISO_INSTANT.format(date.toInstant())
}