web 2.0

ASP/VBScript CDate()

ASP/VBScript CDate() Returns an expression that has been converted to a Variant of subtype Date.

ShotDev Focus:
- Using Asp and CDate() function.

Example

asp_cdate.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write CDate("12/12/2010")&"<br>"
Response.write CDate("1 Mar 2010")&"<br>"
Response.write CDate("Apr 5 2010")&"<br>"
Response.write CDate("31/08/2010")&"<br>"
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_cdate.asp

Screenshot

ASP/VBScript & CDate()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.