Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment js difference between two dates

var admission = moment('{date1}', 'DD-MM-YYYY'); 
var discharge = moment('{date2}', 'DD-MM-YYYY');
discharge.diff(admission, 'days');
Source by helpdesk.castoredc.com #
 
PREVIOUS NEXT
Tagged: #moment #js #difference #dates
ADD COMMENT
Topic
Name
1+9 =