Formating Date and Time in ASP

posted by Scudyen date: Thursday, May 22, 2008 category: ASP

 

In this source code, you may see how can you display date in diffrent formats. This simple ASP code displays current time in short, long and regional settings.

ASP Script :

<%
 response.write FormatDateTime(Now, 0) & "<br>"
 response.write FormatDateTime(Now, 1) & "<br>"
 response.write FormatDateTime(Now, 2) & "<br>"
 response.write FormatDateTime(Now, 3) & "<br>"
 response.write FormatDateTime(Now, 4) & "<br>"
%>

Output :

10-02-2004 12:38:58
10. february 2004
10-02-2004
12:38:58
12:38

 

Read More

Custom Search



Gazatem Technologies Active News Manager


page counter

Listed with 411asp.net Listed with 4aspin.com