Long island web design, hosting company
Home About Us Support Products Services Portfolio Contact Us Home

ASP > Formating Date And Time

Created On: 11/24/2004 10:08:00 AM

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