Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

Format date and time

Description:


How to format date and time using ASP and VB Script.

Code:

<html> <body> <%
Response.Write(FormatDateTime(Date, vbGeneralDate))
Response.Write("<br />" & FormatDateTime(Date, vbLongDate))
Response.Write("<br />" & FormatDateTime(Date, vbShortDate))
Response.Write("<br />" & FormatDateTime(Now(), vbLongTime))
Response.Write("<br />" & FormatDateTime(Now(), vbShortTime))
%> </body> </html>

See working example:


Keywords:

ASP: Response.Write

VBScript: FormatDateTime, Date, Now


     Internet Advertising | Web Advertising | Free Advertising | Free Advertising | Online Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos