Home
Templates
Wordpress Templates
Blogger Template
Joomla Templates
PhpBB Templates
HTML And CSS Templates
PLugins
Wordpress Plugins
Joomla Modules
Blogger Gadgets
Coupon Codes
Hosting Coupons
Domain Coupons
Menus
HTML And CSS Menus
Flash Menus
Tutorials
Video Tutorials
Articles
Hosting
Free Hosting
Premium Hosting
Domains
Free Domains
Premium Domains
Earning Money
Google Adsense
Affiliate Marketing
Web Loverz
About Us
Contact Us
Java Scripts
Image Vectors
Widgets
Layouts
Tuesday, July 19, 2011
Current Date Java Scripts
Current Date Java Scripts
This script allows you to show the current date on any page of your site.Just copy past the code given below..
Java Script 1 In Action:
HTML Code:
<script> 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("<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>") </script><br />
Java Script 2 In Action:
HTML Code:
<script> var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth()+1 if (month<10) month="0"+month var daym=mydate.getDate() if (daym<10) daym="0"+daym document.write("<small><font color='000000' face='Arial'><b>"+year+"/"+month+"/"+daym+"</b></font></small>") </script>
Java Script 3 In Action:
HTML Code:
<script> var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth()+1 if (month<10) month="0"+month var daym=mydate.getDate() if (daym<10) daym="0"+daym document.write("<small><font color='000000' face='Arial'><b>"+month+"/"+daym+"/"+year+"</b></font></small>") </script>
Current Date Java Scripts
2011-07-19T10:17:00-07:00
Web Lover
Java Scripts|
Search
Change The Language
Be A Part Of Web Loverz
Join Web Loverz
Get Our Latest Updates
Enter your email address:
Sponsors