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
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
%>
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>"
invitation = invitation & "<P><span class=title_2>answer before 10/<%=Month( Now )%>/<%=Year( Now )%></span></P>"
ASKER
but the code, is already between <%
function....
%>
it doesn't work... i tried that also, before...
function....
%>
it doesn't work... i tried that also, before...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thx!