Hey Guys, I'm looking for the javascript code that will update the date on a landing page.
Quick Java ?
2
Hey Guys,
I'm looking for the javascript code that will update the date on a landing page.
The closest I could find was
The only problem is, I can't figure out how to change the font style or bold it. Does anyone know how to do this,or know of a better code? Thanks in advance
I'm looking for the javascript code that will update the date on a landing page.
The closest I could find was
Code:
<div style="color:Black;">
<script type="text/javascript">
var d=new Date()
var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
document.write(weekday[d.getDay()] + " ")
document.write(d.getDate() + ". ")
document.write(monthname[d.getMonth()] + " ")
document.write(d.getFullYear())
</script>
</div> - paulgl
- [ 1 ] Thanks
Next Topics on Trending Feed
-
2