/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()) 13
year(Date()) 2017
month(Now()) 12
day(Now()) 13
year(Now()) 2017