Skip to content

Support for 'locale' in date function #516

Open
@shaji-bct

Description

@shaji-bct

I just wanted to check if the $now function supports locale argument while generating date-time for a specific country. From the documentation (https://docs.jsonata.org/date-time-functions) it sounds like only two arguments of format-dateTime are supported.

31st December, 2002
format-date($d, "[D1o] [MNn], [Y]", "en", (), ())

https://www.w3.org/TR/xpath-functions-31/#func-format-dateTime

Is there a way to extend the locale functionality in 1.8.4 jsonata library

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions