Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Parse date to remove the year #10

Open
helmasaur opened this issue Jan 12, 2020 · 2 comments
Open

Parse date to remove the year #10

helmasaur opened this issue Jan 12, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@helmasaur
Copy link
Owner

To keep dates valid, the format which is used is YYYY-MM-DD. A function should be written to return the date as a local date string without the year.

Function to use: Date.prototype.toLocaleDateString().

@helmasaur helmasaur added this to the v1.1.0 milestone Jan 12, 2020
@helmasaur helmasaur self-assigned this Jan 12, 2020
@helmasaur
Copy link
Owner Author

An other way would be returning an object such as the argument in this example:

console.log(zodiac.getSignByDate({ day: 22, month: 6 }));

@helmasaur
Copy link
Owner Author

UPDATING THIS WILL BREAK ACTUAL CODE.

@helmasaur helmasaur modified the milestones: v1.4.0, v1.5.0 Aug 14, 2023
@helmasaur helmasaur modified the milestones: v1.5.0, v2.0.0 Sep 2, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant