Answers for "date minus date typescript"

3

date minus date typescript

// In order to calculate the difference you have to put the + operator,
// that way typescript converts the dates to numbers.
+new Date()- +new Date("2013-02-20T12:01:04.753Z")
Posted by: Guest on January-20-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language