Created
December 15, 2020 12:39
-
-
Save Athira2199/1d055ce2d377a80b0e101572275b0d7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timeLapsedSince = (createdOn)=>{ | |
let lapsedTime = new Date().getTime()-new Date(createdOn).getTime() // time in milliseconds | |
// time in days | |
let timeInDays = lapsedTime(86400 * 1000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment