Posted By

robnilas on 01/21/17


Tagged

work


Versions (?)

Date JS Code from Sales Page


 / Published in: HTML
 

  1. <p>
  2. <!--date goes here-->
  3. /*Current date script credit:
  4. JavaScript Kit (www.javascriptkit.com)
  5. Over 200+ free scripts here!
  6. */
  7. var mydate=new Date()
  8. var year=mydate.getYear()
  9. if (year < 1000)
  10. year+=1900
  11. var day=mydate.getDay()
  12. var month=mydate.getMonth()
  13. var daym=mydate.getDate()
  14. if (daym<10)
  15. daym="0"+daym
  16. var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
  17. var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
  18. document.write("<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")
  19. </script><small><font color="000000" face="Arial"><b> </b></font></small>
  20. </p>

Report this snippet  

You need to login to post a comment.