atomic 3 Report post Posted June 9, 2012 Salam otai putera, nak minta tolong sapa yang mahir javascript, dah penat google, tapi tak berjaya juga.. ni coding HTML+vbscript: [quote] <html> <head><title>test</title></head> <body><form method=post><center><input type="button" value="test" onClick="test1()"></center></form></body> </html> <script Language="vbscript"> sub test1() txtStDt = "01.12.2012" txtDt1 = Split(txtStDt,".") txtEndDt = "15.12.2012" txtDt2 = Split(txtEndDt, ".") jum = DateDiff("d", DateSerial(txtDt1(2),txtDt1(1),txtDt1(0)) , DateSerial(txtDt2(2),txtDt2(1),txtDt2(0))) alert (jum+1) end sub </script> [/quote] harap ada yang sudi tolong... thanks Quote Share this post Link to post Share on other sites
atomic 3 Report post Posted July 18, 2012 topic ni dah boleh close,saya dah jumpa.. Quote Share this post Link to post Share on other sites