<%
Response.Write Now
Response.Write Date & ” ” & Time
%>
Tarih ve Saati Biçimlendirmek
FormatDateTime()<%= FormatDateTime(Date) %
<%= FormatDateTime(Date, vbGeneralDate) %>
<%= FormatDateTime(Date, vbLongDate) %>
<%= FormatDateTime(Date, vbShortDate) %>
<%= FormatDateTime(Now, vbLongTime) %>
<%= FormatDateTime(Now, vbShortTime) %>
<%= FormatDateTime(Now) %>
ASP”deki YEAR(), MONTH(), DAY(), HOUR(), MINUTE(), SECOND() fonksiyonları bize
kullanılan tarihin verilerini verecektir.
<% today = Now %>
<%= Day( today ) %>
<%= Month( today ) %>
<%= Year( today ) %>
<%= Hour( today ) %>
<%= Minute( today ) %>
<%= Second( today ) %>