/home/web-programming/asp/

ASP Month, Day, and Year Functions

The ASP Month(), Day(), and Year() functions are used to return the date in it's individual components.

ASP Coding for Month Function

<%

Response.Write month(Date())

%>


OR

<%

=month(Date())

%>


Result

10

Month, Day, and Year Functions Results
month(Date()) 10
day(Date()) 22
year(Date()) 2024
month(Now()) 10
day(Now()) 22
year(Now()) 2024