Aleks
asked on
function not working on ASP/VB page
I have the following function which works fine on ASP/Javascript page but not on an ASP/VBscript page:
<% function todayStr() {
var today=new Date()
return today.getMonth()+1+"/"+tod ay.getDate ()+"/"+(to day.getYea r())
}
%>
I would need the syntax for the ASP/Vb page :)
<% function todayStr() {
var today=new Date()
return today.getMonth()+1+"/"+tod
}
%>
I would need the syntax for the ASP/Vb page :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
today = FormatDateTime( now, 2 )