- var today=new Date();
-
var t=today.toString().split('U',2);
-
var month=t[0].split(' ',4);
-
var mon=today.getMonth()+1;
-
-
if(format==dd/mm/yyyy)
-
{
-
document.getElementById(id).innerHTML = Day+ " "+ (mon);
-
}
This code wouldn't work. Why are you splitting on the letter U?
Ps. please use code tags when posting code. Thanks!