I have this Javascript code:
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
var yyyy = today.getFullYear();
if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm}
today = dd+'/'+mm;
document.write(today);
Now the months are in mm, so mumbers, I want them to display in words. Now I am not a javescript genius, actually a noob, but my logical mind thought of this:
if(mm = 1){mm = 'January'}
Now as I was already expecting, that doesn't work.
Is there a way to transform the numbers in words with this code, or should I look for another way?