This topic is locked

Convert MonthName to MonthNumber

4/26/2005 11:00:08 AM
ASPRunnerPro General questions
swat author

I need to convert month name value to month number , it needs to be hidden value. Under hidden value format , I stored this non of them working-

Month(Monthname(rsDetails("Focus_Month")))
Month(rsDetails("Focus_Month")))


Note: I have ASPRunnerPro3.1 - also I am still wating for ZIP version of asprunnerPro3.2 beta

Any ideas- thx

Sergey Kornilov admin 5/4/2005

Hi,
you need to write function for this. Here is an example:

function MonthToNumber(m)

if m="January" then

MonthToNumber=1

if m="February" then


MonthToNumber=2

if ...
if m="December" then _

MonthToNumber=12

end function