RLWD Programming

ASP Month, Day, and Year Functions

Sponsored Ads

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

2



Month, Day, and Year Functions Results
month(Date()) 2
day(Date()) 3
year(Date()) 2012
month(Now()) 2
day(Now()) 3
year(Now()) 2012