Menu
How could I output 6 months out from todays date. Currently the script gives me todays date?
<form name=”dform”>
<input type=”text” name=”currentdate” size=11>
</form>
<script>
var mydate=new Date()
var theyear=mydate.getYear()
if (theyear < 1000)
theyear+=1900
var theday=mydate.getDay()
var themonth=mydate.getMonth()+1
if (themonth<10)
themonth=”0″+themonth
var theday=mydate.getDate()
if (theday<10)
theday=”0″+theday
var displayfirst=themonth
var displaysecond=theday
var displaythird=theyear
document.dform.currentdate.value=displayfirst+”/”+displaysecond+”/”+displaythird
</script>