Nitesh is back to blogging.. Apologies for no updates since last 2 months..

Show current day and date on blogger - blogger widget

Posted by Nitesh Kothari on 16 December 2008
Share this post:
Ma.gnolia DiggIt! Yahoo Furl Technorati Reddit

Wolverine hacks has new magazine style look. Many readers were happy with the current date section at the top left. It is very easy to show current day and date on Blogger using Current date and dat blogger widget. Copy and paste the following code to a new HTML/Javascript box in the page element section.

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
var dayarray=new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
var montharray=new Array("January","February","March","April","May", "June","July", "August","September","October","November","December")
document.write("<p>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</p>")
<p align="right"><font face="arial, helvetica" size="-2"><a href="">Grab this widget</a></font></p>

Leave a comment, if you have any problem or query.



Taylor said...

Dude I have always loved your designs. Yet another great post from Wolvi. Thanks man

Post a Comment

Thank you for commenting at I follow "U comment I comment" movement. All the comment are dofollow. Please do not spam or leave meaningless or short comments. I expect you to leave me meaningful, relative and genuine comments. Thank you.