Skip to content

Add dateFormat helper#874

Merged
255kb merged 1 commit intomockoon:mainfrom
LANGERGabrielle:feature/873-add-date-format-helper
Dec 1, 2022
Merged

Add dateFormat helper#874
255kb merged 1 commit intomockoon:mainfrom
LANGERGabrielle:feature/873-add-date-format-helper

Conversation

@LANGERGabrielle
Copy link
Contributor

Closes #873

This adds a dateFormat helper that works like this :

{{dateFormat '2022-02-01' 'YYYY'}}

And output :

2022

Checklist

  • data migration added (@mockoon/commons)
  • data migration automated tests added (@mockoon/commons)
  • CLI automated tests added (@mockoon/cli)
  • desktop automated tests added (@mockoon/desktop)

@255kb 255kb merged commit 55aec30 into mockoon:main Dec 1, 2022
@255kb
Copy link
Member

255kb commented Dec 1, 2022

Thanks! I will add the documentation to the website and plan it for the next release (somewhere in December).

@LANGERGabrielle LANGERGabrielle deleted the feature/873-add-date-format-helper branch December 1, 2022 15:15
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

Successfully merging this pull request may close these issues.

Add a helper to format a date

2 participants