Learn GREEK with Easy Online Lessons, Discussions
Click HERE for details...
/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

11

Month, Day, and Year Functions Results
month(Date()) 11
day(Date()) 30
year(Date()) 2022
month(Now()) 11
day(Now()) 30
year(Now()) 2022