Computer Keywords    Meta tag Generator  Software Whois Web Programming India Article Write text using ASP | Submit Articles |  

 

Free Newsletter

Sat, May 17, 2008

Our Service

Custom Software
Software Process
Web Development
Review Our Site
Our Developments
ASP Tutorials
HTML/ DHTML Tutorials
Computer keywords
Whois

Link Exchange

Computer

Business
Marketing
Misc General
Website

Articles

Automobile articles
Business articles
Computers articles
Entertainment articles
Education articles
Health & Food articles
Law/Legal articles
Marketing articles
General articles
Software articles
Sports articles
Science \Technology articles
Travel /Tourism articles
Web articles

ASP Tutorials

Date/Time Functions (VBScript)

<html>
<body>

Today's date is: <%response.write(date())%>.
<br>
The server's local time is: <%response.write(time())%>.

</body>
</html>

Today's date is: 27.08.2005.
The server's local time is: 09:38:16.

Get the name of a month

<html>
<body>

<p>VBScripts' function <b>MonthName</b> is used to get a month:</p>
<%
response.Write(MonthName(1))
response.Write("<br>")
response.Write(MonthName(2))
%>

<p>Abbreviated name of a month:</p>
<%
response.Write(MonthName(1,true))
response.Write("<br>")
response.Write(MonthName(2,true))
%>

<p>Current month:</p>
<%
response.Write(MonthName(month(date)))
response.Write("<br>")
response.Write(MonthName(month(date), true))
%>

</body>
</html>
 

VBScripts' function MonthName is used to get a month:

januar
februar
Abbreviated name of a month:

jan
feb
Current month:

august
aug

Format date and time

<html>
<body>

<%
response.write(FormatDateTime(date(),vbgeneraldate))
response.write("<br />")
response.write(FormatDateTime(date(),vblongdate))
response.write("<br />")
response.write(FormatDateTime(date(),vbshortdate))
response.write("<br />")
response.write(FormatDateTime(now(),vblongtime))
response.write("<br />")
response.write(FormatDateTime(now(),vbshorttime))
%>

<p>
Syntax for FormatDateTime: FormatDateTime(date,namedformat).
</p>

</body>
</html>
 

27.08.2005
27. august 2005
27.08.2005
09:41:46
09:41
Syntax for FormatDateTime: FormatDateTime(date,namedformat).
 

Is this a date?

<html>
<body>

<%
somedate="10/30/99"
response.write(IsDate(somedate))
%>

</body>
</html>
 

True

 

 

Our Service

      Mumbaiarticle   Blackmagik   

 Mantravidya | Divyayoga shop | How to remove blackmagik | Infoarticle | India Article | Dhyansanjivani | Free horoscope | Ghost Hunter | RishiZone |

w