Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Date Difference Moment js

var dateofvisit = moment('{visit}', 'DD-MM-YYYY');
var today = moment();
today.diff(dateofvisit, 'days');
Source by helpdesk.castoredc.com #
 
PREVIOUS NEXT
Tagged: #Date #Difference #Moment #js
ADD COMMENT
Topic
Name
6+8 =