Answers for "php pass 2 date value to javascript"

PHP
0

php pass 2 date value to javascript

function dateDiff() {
	
	var date1 = new Date(document.getElementById("fromDatePicker").value);
	var date2 = new Date(document.getElementById("toDatePicker").value);
	var difference = date2 - date1;
	var days = difference/(24*3600*1000);
	document.getElementById('hari').value=days;
	}
Posted by: Guest on February-20-2020

Code answers related to "php pass 2 date value to javascript"

Browse Popular Code Answers by Language