You are on page 1of 1

<html> <head> <title>time & date</title></head> <body> <h2>server side information is as folow</h2> <%dim tm,dt%> <%tm=time%> <%dt=date%> the

date dt the server side is<%=date%><br> the time dt the server side is<%=time%><br> the name of week day is <%response.write weekdayname(weekday(dt))%> <br> the name of current month is <%response.write monthname(month(dt))%><br> <h2>client side information is as follows</h2> <script language="vbscript"> document.write("today date is"&date); document.write("<br>"); document.write("current time is"&time); document.write("<br>"); document.write("the name of weekday is"&weekday name(weekday(date))); document.write("<br>"); document.write("the name of month is"&month name(month(date))); document.close </script> </body> </html>

You might also like