Skip to content

Instantly share code, notes, and snippets.

@YordanGeorgiev
Created September 18, 2018 10:58
Show Gist options
  • Save YordanGeorgiev/c10e78f1434d83be70aa351bd580814f to your computer and use it in GitHub Desktop.
Save YordanGeorgiev/c10e78f1434d83be70aa351bd580814f to your computer and use it in GitHub Desktop.
[get iso-8601 datetime ] how-to get iso-8601 datetime #scala #iso-8601 #datetime #datetimeformat
val ts:String = java.time.LocalDateTime.now().format(java.time.format.DateTimeFormatter.ISO_LOCAL_DATE_TIME).toString.replaceAll("T"," ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment