Nieuw lid |
|
Kan dit ook of niet?
var mydate=new Date()
var year=mydate.getYear()
if (year<2000)
year += (year < 1900) ? 1900 : 0
var daym=mydate.getDate()
var month=mydate.getMonth()
if (daym<10)
daym="0"+daym
var montharray=new
Array("01","02","03","04","05","06","07","08","09","10","11","12")
var vandaag = (" "+daym+"-"+montharray[month]+"-"+year+" ")
if(document.rma.factuurdatum.value + 365 =< vandaag)
{
garantietermijn.value = 'niet';
}
else
{
garantietermijn.value = 'wel';
}
}
var mydate=new Date() var year=mydate.getYear() if (year<2000) year += (year < 1900) ? 1900 : 0 var daym=mydate.getDate() var month=mydate.getMonth() if (daym<10) daym="0"+daym var montharray=new Array("01","02","03","04","05","06","07","08","09","10","11","12") var vandaag = (" "+daym+"-"+montharray[month]+"-"+year+" ") if(document.rma.factuurdatum.value + 365 =< vandaag) { garantietermijn.value = 'niet'; } else { garantietermijn.value = 'wel'; } }
|