IT Solutions
Search This Blog
Friday, February 13, 2009
Calculate day difference between two date using javascript
function GetdateDiff()
{
var Tdate=new Date(2009,1,13)
//Date(yyyy,mm,dd)
var Odate=new Date(2009,2,13)
//Date(yyyy,mm,dd)
alert((Odate - Tdate)/(1000*60*60*24));
}
1 comment:
Anonymous
February 13, 2009 at 3:01 PM
thanks alot
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
thanks alot
ReplyDelete