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

Specify fake date format #11

Open
chocoelho opened this issue Jan 10, 2018 · 3 comments
Open

Specify fake date format #11

chocoelho opened this issue Jan 10, 2018 · 3 comments

Comments

@chocoelho
Copy link

It'd be good to be able to specify date format in a way similar to jsynowiec/vscode-insertdatestring.

@deerawan
Copy link
Owner

@chocoelho Hi carlos, interesting feature request. Will figure it out.

@jwschram
Copy link

If you're taking suggestions I was thinking about this.

Add the following options:

  • date.past.formatted
  • date.recent.formatted
  • date.future.formatted

Each would ask for additional input, a string pattern, and return the date formatted in that style.

This can be done by incorporating a library like date-format which already parses date patterns provided as strings.

@deerawan
Copy link
Owner

nice suggestion @jwschram. 👍

I just found out that the lib doesn't support date formatting https://github.com/Marak/faker.js/issues/601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants