Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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")
 
PREVIOUS NEXT
Tagged: #date #date #typescript
ADD COMMENT
Topic
Name
3+2 =