Page 1 of 1

Get date range duration in DbFace

Posted: Thu May 17, 2018 5:08 am
by admin

Code: Select all

var fromDate = $('#fromDate').val().split('-');

var end = new moment($.trim(fromDate[1]));
var begin = new moment($.trim(fromDate[0]));

var diff = end.diff(begin, 'days');