An open API service indexing awesome lists of open source software.

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.

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
```