Convert a string to date

Convert a string to date

1) How can I convert a string (numeric) to a month or date format?

For example:

I have a field that contains one numeric string: like 0-9. I would like to convert this into month format, such that when the string is "1", the month will be January, when the string is "2", the month will be February, when the string is "3", the month will be March, and so on....

I tried the toDate() function, but it did not return a value.

2) On another note, i tried the getMonth() function on a form field (DATE type), but it did not return any value.

Are the date functions working normally?