you can t use now(), which is of type datetime, with the current function code example

you can t use now(), which is of type datetime, with the current function

1

1 Example

0
dt1 = new Date(birthdate);
dt2 = new Date();
var diffindays = Math.floor((Date.UTC(dt2.getFullYear(), dt2.getMonth(), dt2.getDate()) - Date.UTC(dt1.getFullYear(), dt1.getMonth(), dt1.getDate()) ) /(1000 * 60 * 60 * 24));
by on

Other Code Examples