Here is my solution maybe not the neatest script but it works
var date = new Date();
minutes = date.getMinutes();
seconds = date.getSeconds();
hour = date.getHours();
year = date.getFullYear();
day = date.getDay();
month = date.getMonth();
dates = date.getDate();
if (minutes < 10)
{
min = "0" + minutes;
}
else
{
min = minutes;
}
if (day == 0)
{
strday = "Sunday";
}
if (day == 1)
{
strday = "Monday";
}
if (day == 2)
{
strday = "Tuesday";
}
if (day == 3)
{
strday = "Wednesday";
}
if (day == 4)
{
strday = "Thursday";
}
if (day == 5)
{
strday = "Friday";
}
if (day == 6)
{
strday = "Saturday";
}
if (month == 0)
{
strmonth = "January";
}
if (month == 1)
{
strmonth = "February";
}
if (month == 2)
{
strmonth = "March";
}
if (month == 3)
{
strmonth = "April";
}
if (month == 4)
{
strmonth = "May";
}
if (month == 5)
{
strmonth = "June";
}
if (month == 6)
{
strmonth = "July";
}
if (month == 7)
{
strmonth = "August";
}
if (month == 8)
{
strmonth = "September";
}
if (month == 9)
{
strmonth = "October";
}
if (month == 10)
{
strmonth = "November";
}
if (month == 11)
{
strmonth = "December";
}
strDated = strday + "," + " " + dates + " " + strmonth + " " + year;
strTimes = hour + ":" + min;