xxxxxxxxxx
/**
* this function is use to hide all the previous date from calender
*
* @param {[type]} pramaid [pramaid description]
*
* @return {[type]} [return description]
*/
function preventPreviousDate(pramaid) {
var today = new Date();
var day = today.getDate();
var month = today.getMonth() + 1;
var year = today.getFullYear();
if (day < 10) {
day = "0" + day;
}
if (month < 10) {
month = "0" + month;
}
var today_formatted = year + "-" + month + "-" + day;
// Set the minimum date for the date input field
document.getElementById(pramaid).setAttribute("min", today_formatted);
}