Skip to content
This repository was archived by the owner on Jul 31, 2020. It is now read-only.
This repository was archived by the owner on Jul 31, 2020. It is now read-only.

Check if date is between two days of this week returns an error. #136

@AtanasBobev

Description

@AtanasBobev

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?

image

Here is my code: Date.parse(localStorage.getItem('daysSet')).between(Date.parse("Monday") , Date.parse("Sunday"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions