programming-examples/asp/More_Code_Snippets/Find out part of a date using the DatePart function.asp
2019-11-18 14:25:58 +01:00

12 lines
378 B
Plaintext

<%
'DatePart examples
'we will be using the Now() function for the date in all examples
'we will display the week number
Response.Write DatePart("ww" , Now) & "<br>"
'display the weekday
Response.Write DatePart("w" , Now) & "<br>"
'display the hour
Response.Write DatePart("h" , Now) & "<br>"
'display the day
Response.Write DatePart("d" , Now) & "<br>"
%>