Formating Date & Time

Submitted by:Tim Kelly

Date added:03 November, 2011

Category:ASP

Here are some simple examples of using the functions with your variables. Run these from any ".asp" page and watch what happens

Tags: format date , format time

Code Snippet:

<%= FormatDateTime(Date) %><br>
<%= FormatDateTime(Date, 0) %><br>
<%= FormatDateTime(Date, 1) %><br>
<%= FormatDateTime(Date, 2) %><br>
<%= FormatDateTime(Now, 3) %><br>
<%= FormatDateTime(Now, 4) %><br>
<%= FormatDateTime(Now) %><br>
 
 

Comments