/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

5

Month, Day, and Year Functions Results
month(Date()) 5
day(Date()) 14
year(Date()) 2024
month(Now()) 5
day(Now()) 14
year(Now()) 2024