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

Get difference in days/weeks/months/years between 2 dates #32

Open
patelhumaira21 opened this issue Oct 1, 2021 · 1 comment
Open
Assignees
Labels
easy enhancement New feature or request

Comments

@patelhumaira21
Copy link

patelhumaira21 commented Oct 1, 2021

Is your feature request related to a problem? Please describe.

Given 2 dates, the function should return the difference in days/weeks/months/years

Describe the solution you'd like

Given 2 dates in a given format, I should be able to get the difference in either DAYS/WEEKS/MONTHS/YEAR.
Syntax: dateDifference(input1, input2, format, chronoUnit)

ChronoUnit values:
DAYS
WEEKS
MONTHS
YEARS

Formats it should support:
MM/dd/yyyy
yyyyMMdd
yyyy-MM-dd

Open to other suggestions for syntax

@patelhumaira21 patelhumaira21 added enhancement New feature or request easy moderate and removed moderate labels Oct 1, 2021
@nancyp321
Copy link

Hello! I would like to work on this issue. Kindly assign it to me !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants