Skip to content

Date separator according to culture  #15

@pmajIDC

Description

@pmajIDC

Hi, I am using package to formatting date time and I find the problem with date separator in different culture.
You can easy fixed it. You can add condition, which replace '/' with date separator, in method FormatLiteral in class Formatter.

For example:
else if (token.Length == 1 && token[0] == '/' && culture != null)
{
literal = DateTime.MaxValue.ToString("/d", culture)[0].ToString();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions