this code for basic date
<div style="color:#FF0000;font-size:16px;font-family:Arial;font-weight:bold;font-style:normal;text-decoration:underline" id="basicdate"></div>
<script type="text/javascript">
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate() < 10) ? "0" : "") + now.getDate();
var year = (now.getYear() < 1000) ? now.getYear() + 1900 : now.getYear();
today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + year;
var basicdate = document.getElementById('basicdate');
basicdate.innerHTML = today;
</script>
mohamed basha
0 comment:
إرسال تعليق