add date in function

hi, i wanna add a date (asp) in a function, how do i do that?

so every month, it will be updated automaticly (10/current month/current year)


thx


<%
function invitation (lng)
	
	
	select case lng
	case "fr"
		invitation = invitation & "<p>Welcome..... </p>"
		invitation = invitation & "<P><span class=title_2>answer before 10/here current month/here current year</span></P>"	

		
	
	case "nl"
		invitation = invitation & "<p>Welcome 2 </p>"
		invitation = invitation & "<P><span class=title_2>Vul je cijfers in voor 01/01/2014</span></P>"	

	end select
end function
%>
  

Open in new window

fedkrisAsked:
Who is Participating?
 
Big MontyConnect With a Mentor Senior Web Developer / CEO of ExchangeTree.org Commented:
you're right, my mistake. try this (assuming it's what you want, you never really clarified my question):

invitation = invitation & "<P><span class=title_2>answer before 10/" & Month( Now ) & "/" & Year( Now ) & "</span></P>"
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
what dates do you want to add? 10 days to the current date?
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
or do you just want the current month and year to display?

invitation = invitation & "<P><span class=title_2>answer before 10/<%=Month( Now )%>/<%=Year( Now )%></span></P>"
0
 
fedkrisAuthor Commented:
but the code, is already between <%

function....

%>


it doesn't work... i tried that also, before...
0
 
fedkrisAuthor Commented:
thx!
0
All Courses

From novice to tech pro — start learning today.