How To Show Date, Month , Year on Blogger

Bookmark and Share
1.Log in to your dashboard--> layout- ->Page Elements
2.Click on 'Add a Gadget'.
3.Select 'HTML/Javascript' and add the code given below and click save.
Select HTML/JavaScript
<script type='text/javascript'>

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
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>")

</script>
You are done.Now you can see it as picture below.
Show Date,Month,Year on Blogger

Artikel Lain-nya

{ 0 comments... Views All / Send Comment! }

Post a Comment

You can replace this text by going to "Layout" and then "Page Elements" section. Edit " About "

Powered by Blogger.