date script

[counter date=YYY/MM/DD-hh:mm:ss]
Just [remaining-timer] until this film comes out in cinemas!
[after]For [elapsed-timer], this film is released in cinemas![/counter]

http://www.java2s.com/Code/JavaScript/Development/

Displayfulldatecompletedatewiththedaynameandmonthname.htm

Display full date : complete date with the day name and month name

<html>
<body>
<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>
</body>
</html>

================

<p style=”text-align: center;”><strong><em><span style=”color: #ff0000;”>Exclusive Bonus Offer Valid To Midnight:-
<script type=”text/javascript”>// <![CDATA[
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></span></em></strong>

Print Friendly
SocialTwist Tell-a-Friend