I'm trying to format date in Java. I need this format:
2017-06-10T12:38:15.687+03:00
How correctly convert this from standard Date
format which I have got in a String
?
Tue Jun 18 00:00:00 MSK 2024
I'm trying to format date in Java. I need this format:
2017-06-10T12:38:15.687+03:00
How correctly convert this from standard Date
format which I have got in a String
?
Tue Jun 18 00:00:00 MSK 2024
Using new calendar API in Java 8.
API Class Default Format
+-----------------------------------+
LocalDate 2021-12-25
LocalTime 12:30:30
LocalDateTime 2021-12-25T12:30:30
OffsetTime 12:30:30+01:00
OffsetDateTime 2021-12-25T12:30:30+01:00
ZonedDateTime 2021-12-25T12:30:30+01:00 Europe/Paris
Year 2021
YearMonth 2021-12
MonthDay -12-25
Instant 2021-12-25T12:30:30.274Z