Created
September 18, 2018 10:58
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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