Skip to content

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

@fkrauthan

Description

@fkrauthan

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.

Activity

tadfisher

tadfisher commented on May 18, 2021

@tadfisher

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".

tylerwilson

tylerwilson commented on Dec 13, 2021

@tylerwilson

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.

Artrosis

Artrosis commented on Sep 28, 2022

@Artrosis

I needed formatting for logs

added a commit that references this issue on Feb 20, 2024
9b7b49c
added a commit that references this issue on Mar 1, 2024
f18cb89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    formattersRelated to parsing and formatting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @tadfisher@tylerwilson@fkrauthan@Artrosis@dkhalanskyjb

      Issue actions

        Support custom formats (for parsing as well as toString operations) · Issue #58 · Kotlin/kotlinx-datetime