Skip to content

How to Calculate the Difference between the 2 date objects #6

@viralchonkar

Description

@viralchonkar

How to calculate the difference between the 2 date objects?
For eg.:
let currentDate = new DateObject();
let previousDate = new DateObject(4,'days');
let difference = previousDate - currentDate; // Which will be 4 in number

Suggestion would help me out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions