Get Date From Exs JS
My Diary is blog Powered by Wordpress. Please subscribe to My Diary via the RSS Feed or Via Email.
How to put the date in your blog that were useful reminded the visitor would the date now and sometimes we forgot the trivial matter that the date could help you in your work, your life and and your time. Here I will give to you how exsternal javascripts put the date in your blog. Now copy and paste the code javascript below then kept by the name of date.js to your notepad editor :
var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var daym=mydate.getDate() var month=mydate.getMonth() if (daym<10) daym="0"+daym var dayarray=new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu") var montharray=new Array("Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember") document.write(""+dayarray[day]+","+daym+" "+montharray[month]+", "+year+"")
After that upload date.js in to theme wordpress directory that you are use. And finally edit your theme then call javascript date.js this anywhere was up to you after Body tag input code below in your theme to put the date in your blog :
<script src="<?php bloginfo('template_url'); ?>/date.js" type="text/javascript"></script>
Be finish now you can see whether the date has been seen in your blog. Good luck :gg







