/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

12

Month, Day, and Year Functions Results
month(Date()) 12
day(Date()) 21
year(Date()) 2024
month(Now()) 12
day(Now()) 21
year(Now()) 2024