Skip to content

parse ["##" yyyy/mm/dd] failed? #3

@kiinoo

Description

@kiinoo

I want to format a date, with "##" as prefix, but failed, below is the code and error. Is it possible to achieve that?

const format = "\"##\"yyyy";
const tr = new TextRenderer(format);

Got the following error:

SyntaxError: Expected "%", "*", ",", ".", ";", "E", [%,], digit-mask, end of input, escaped-char, hidden, literal, quoted-string, separator, space, or unmapped-char but "y" found.

excel works:

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions