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

Allow date and term calculation in liquid #6

Conversation

sumanth-spotdraft
Copy link

(A) If date = 31 March 2020 then 30 day period = Print date + 30 days .
(B) If Date 1 = 31 March 2020 and Date 2 = 30 March 2021 then Print Duration between Date 1 and Date 2

@codebreach
Copy link

Tests? Also add date but subtract something else. please

test/filters.js Outdated Show resolved Hide resolved
filters.js Outdated Show resolved Hide resolved
filters.js Outdated Show resolved Hide resolved
filters.js Outdated Show resolved Hide resolved
filters.js Outdated Show resolved Hide resolved
test/filters.js Outdated Show resolved Hide resolved
@sumanth-spotdraft
Copy link
Author

Tests? Also add date but subtract something else. please

Added

filters.js Show resolved Hide resolved
test/filters.js Outdated Show resolved Hide resolved
@anirudhvarma12 anirudhvarma12 merged commit bf20a09 into SpotDraft:master Mar 31, 2020
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.

3 participants