/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

4

Month, Day, and Year Functions Results
month(Date()) 4
day(Date()) 19
year(Date()) 2024
month(Now()) 4
day(Now()) 19
year(Now()) 2024