date minus date typescript

The solution for “date minus date typescript” can be found here. The following code will assist you in solving the problem.

// 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”)

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in