We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given date = 2020-04-23T14:09:00.977 The below code both output the same result,
date = 2020-04-23T14:09:00.977
{{moment date format="MM/DD/YYYY"}} {{moment date add="{day:20}" format="MM/DD/YYYY"}} // 04/23/2020 // 04/23/2020
I'm essentially looking to see if a specific date was less than 20 days ago.
{{#if (moment "now" format="MM/DD/YYYY") ">=" (moment date add="{days:20}" format="MM/DD/YYYY") }} // do something {{/if}}
I know there's the from function: {{moment from=date}} but that returns a string "in 19 days" and not a number.
{{moment from=date}}
Maybe I'm just missing a function or something but I could really use some help here.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi any news about this one? It seems that the "add" and "subtract" helper were not working. Thanks!
Sorry, something went wrong.
No branches or pull requests
Given
date = 2020-04-23T14:09:00.977
The below code both output the same result,I'm essentially looking to see if a specific date was less than 20 days ago.
I know there's the from function:
{{moment from=date}}
but that returns a string "in 19 days" and not a number.Maybe I'm just missing a function or something but I could really use some help here.
Thanks!
The text was updated successfully, but these errors were encountered: