toDate from Numeric Variables
I am trying to convert numeric variables to a date:
curMonth = 2
curDate= 15
curYear = 2013
Date1= (curMonth+curDate+curYear).toDate()
I have also tried
Date1= (curMonth+curDate+curYear).toString().toDate()
In my script i just keep getting error that it couldn't convert variable to a date. Can someone please help. Thank you.