Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Day-Month-Year date format #6

Open
leehadassin opened this issue Dec 1, 2021 · 2 comments
Open

Support for Day-Month-Year date format #6

leehadassin opened this issue Dec 1, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@leehadassin
Copy link

Hi,

Love the extension.

Any chance of providing an option to change the date format?

Thanks from Australia

Lee

@nortakales
Copy link
Owner

This is possible albeit slightly complicated. Right now the string is being passed directly into new Date(...). It seems to recognize year/month/day, and month/day/year by default. I think the correct solution will be to manually parse dates myself, and pass individual date/time components to the Date constructor. I will get to this eventually but it isn't super high priority.

@nortakales nortakales added the enhancement New feature or request label Feb 17, 2022
@VulumeCode
Copy link

VulumeCode commented Sep 20, 2022

It is possible to use ISO8601 dates, which has year-month-day like so: date(1995-12-17 03:53:00).

What's really needed is a Date output format option. It seems now it just uses locale for output. This means you can get confusing output like: date(01/23/4567) = 23/1/4567 and you can make copypaste errors.

Should be much easier to implement than custom parsing too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants