ASP Vbscript Time Function

Updated on 23 Feb 2012,
Published on 10 Aug 2008

Vbscript Time function returns the current time of Server or client’s PC according to the script usage in Classic ASP web page whether scripting is done at server side or client side. If vbscript time function is used at server side then it returns the current time of server system. If vbscript time function is used at client side then it returns the date of client’s computer system.

Classic ASP VbScript Time Functions Examples:

You can see the live samples and examples of Classic ASP VbScript Time functions from the following links:

Syntax for ASP Vbscript Time function

Time()

Above vbscript function name is used to retrieve the current system time.

Examples of ASP Vbscript Time Function

Example 1: (Server Side Vbscript)
<%
    Response.Write(Time())
%>
Example 2: (Client Side Vbscript)
<script language="vbscript" type="text/vbscript">
    document.write(Time())
</script>

Output:

You can see the output of above discussed code from the following link:

VbScript Time Function

Continue to next tutorial: ASP Vbscript Timer Function to learn the functionality of Timer function.

0 Responses to "ASP Vbscript Time Function"
Leave a Comment
* required
* required
* will not be published
* optional
* hint: http://www.example.com
  • Subscribe via Email
  • HIRE EzineASP.Net Developers