Thursday, January 19, 2012

java source coding: javascriptDHTML( Date Object Calculations)

try this example:
   

<html
<head> 
<title>Date Calculation</title> 
<script type="text/javascript"
function nextWeek() { 
    var todayInMS = today.getTime()
    var nextWeekInMS = todayInMS + (60 60 24 1000)
    return new Date(nextWeekInMS)

</script> 
</head> 
<body
Today is: 
<script type="text/javascript"
    var today = new Date()
    document.write(today)
</script> 
<br> 
Next week will be: 
<script type="text/javascript"
    document.write(nextWeek())
</script> 
</body
</html


submitted by guest blogger
lisa walter,US
Retweet this story

No comments:

Post a Comment