Hi, I'm trying to make some basic javascript and get "native code" instead of what I want:
<script type="text/javascript"> var today = new Date(); document.write(today + "<br />"); //document.write(today.length + "<br />"); - was getting "undefined" //document.write(today[0] + "<br />"); - was getting "undefined" document.write(today.getMonth + "<br />"); document.write(today.getMonth + "<br />"); document.write(today.getFullYear + "<br />"); </script>
:
Fri Jan 13 14:13:01 EST 2012 function getMonth() { [native code] } function getDay() { [native code] } function getFullYear() { [native code] }
I want to get the current month, day, year and put it in an array variable, which I will call later. Because of this code. Can someone tell me what it is and hopefully more importantly I can complete this project? Thanks for your time and help, it is very much appreciated!
source share