kotlinx-datetime icon indicating copy to clipboard operation
kotlinx-datetime copied to clipboard

Support custom formats (for parsing as well as toString operations)

Open fkrauthan opened this issue 5 years ago • 2 comments

I think one of the biggest missing items is a formatting system to parse custom date formats as well as to serialize a date object back to a string with custom format. When working with dates both directions are very important and common.

fkrauthan avatar Oct 13 '20 19:10 fkrauthan

A replacement (or delegate) for the ICU RelativeDateTimeFormatter would be a useful addition. The use case is to format localized absolute times, e.g. "today", "yesterday", and "last week".

tadfisher avatar May 18 '21 02:05 tadfisher

Hope this is being worked on. I would love to use this package cross-platform, but not having a generic formatting/parsing system is holding us back. Thanks.

tylerwilson avatar Dec 13 '21 13:12 tylerwilson

I needed formatting for logs

Artrosis avatar Sep 28 '22 08:09 Artrosis