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

Literal support in formatting mask #18

Closed
amoilanen opened this issue Aug 12, 2016 · 2 comments
Closed

Literal support in formatting mask #18

amoilanen opened this issue Aug 12, 2016 · 2 comments

Comments

@amoilanen
Copy link
Contributor

moment.js allows to use literals in formatting masks, it would be nice to have a similar feature in fecha.

Example:

fecha.format(new Date(2001, 2, 5, 6, 7, 2, 5), '[on] MM-DD-YYYY [at] HH:mm');
// 'on 03-05-2001 at 06:07'

PR that implements the feature #17

@taylorhakes
Copy link
Owner

Complete in #17. Thanks @antivanov.

@amoilanen
Copy link
Contributor Author

Thanks for reviewing the changes and merging the PR

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

No branches or pull requests

2 participants