Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> fromDate="31-Jan-09 00:00:00" toDate="31-Jan-10 23:59:00" document.write(DateDiff("yyyy",fromDate,toDate) & "<br>") document.write(DateDiff("q",fromDate,toDate) & "<br>") document.write(DateDiff("m",fromDate,toDate) & "<br>") document.write(DateDiff("y",fromDate,toDate) & "<br>") document.write(DateDiff("d",fromDate,toDate) & "<br>") document.write(DateDiff("w",fromDate,toDate) & "<br>") document.write(DateDiff("ww",fromDate,toDate) & "<br>") document.write(DateDiff("h",fromDate,toDate) & "<br>") document.write(DateDiff("n",fromDate,toDate) & "<br>") document.write(DateDiff("s",fromDate,toDate) & "<br>") </script> </body> </html>
Result:
W3Schools.com - Try it yourself