I have a problem here, I'm working on a project here I have to limit the date value to not save the date if the value inserted was yesterday or so on.(e.g. from the beginning of the universe to Jan. 13 2016).
I'm using php and javascript. This is the code:
function date(){
var present = new Date();
var day = today.getDate();
var month = today.getMonth()+1; //January is 0!
var year = today.getFullYear();
if(day<10) {
day='0'+day
}
if(month<10) {
month='0'+month
}
}
today = month+'/'+day+'/'+year;
document.write(today);