You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.
Hi. I'm new to date.js. I have a localStorage key that holds date. My goal is to check if this specific date is between this monday and this sunday of this week. For example: today is Tuesday. Checking today I should get true but after one week the response should be false because one week has passed. What I came up so far provokes errors in the console. How to make this code work as intended?
Here is my code: Date.parse(localStorage.getItem('daysSet')).between(Date.parse("Monday") , Date.parse("Sunday"))
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi. I'm new to date.js. I have a localStorage key that holds date. My goal is to check if this specific date is between this monday and this sunday of this week. For example: today is Tuesday. Checking today I should get true but after one week the response should be false because one week has passed. What I came up so far provokes errors in the console. How to make this code work as intended?
Here is my code:
Date.parse(localStorage.getItem('daysSet')).between(Date.parse("Monday") , Date.parse("Sunday"))
The text was updated successfully, but these errors were encountered: