D
Dung Ping
The following code produces different dates on different browers on my
computer.
For today on the IE it is: 2005.9.27 which is correct, but on FF is:
105.9.27 which in incorrect.
I copied the code free from somewhere. Are the different displays the
fault of browser, computer or code? Thanks.
<script type="text/javascript" language="javascript">
var today_date= new Date()
var myyear=today_date.getYear()
var mymonth=today_date.getMonth()+1
var mytoday=today_date.getDate()
document.write("Today is: ")
document.write(myyear+"."+mymonth+"."+mytoday)
</script>
computer.
For today on the IE it is: 2005.9.27 which is correct, but on FF is:
105.9.27 which in incorrect.
I copied the code free from somewhere. Are the different displays the
fault of browser, computer or code? Thanks.
<script type="text/javascript" language="javascript">
var today_date= new Date()
var myyear=today_date.getYear()
var mymonth=today_date.getMonth()+1
var mytoday=today_date.getDate()
document.write("Today is: ")
document.write(myyear+"."+mymonth+"."+mytoday)
</script>