Link to home
Start Free TrialLog in
Avatar of fedkris
fedkris

asked on

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

Avatar of Big Monty
Big Monty
Flag of United States of America image

what dates do you want to add? 10 days to the current date?
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>"
Avatar of fedkris
fedkris

ASKER

but the code, is already between <%

function....

%>


it doesn't work... i tried that also, before...
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fedkris

ASKER

thx!