https://github.com/domicoder/format-date-kt
Date Format in Kotlin: ZoneDateTime, LocalDateTime, Instant and Date.
https://github.com/domicoder/format-date-kt
Last synced: over 1 year ago
JSON representation
Date Format in Kotlin: ZoneDateTime, LocalDateTime, Instant and Date.
- Host: GitHub
- URL: https://github.com/domicoder/format-date-kt
- Owner: domicoder
- Created: 2020-03-24T23:15:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T23:25:48.000Z (over 6 years ago)
- Last Synced: 2025-01-21T01:41:49.855Z (over 1 year ago)
- Language: Kotlin
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Format Date in Kotlin Language
Date Format in Kotlin: **ZoneDateTime**, **LocalDateTime**, **Instant** and **Date**.
#### Output
```ZoneDateTime to LocalDateTime
1948-08-04T12:19:32.638
java.time.LocalDateTime
04/08/1948
ZonedDateTime to Instant
1948-08-04T12:19:32.638Z
java.time.Instant
Instant to Date
Wed Aug 04 12:19:32 UTC 1948
java.util.Date
Format Date
04/08/1948
java.lang.String
```