To Date Source : Date Get « Date Time « JavaScript DHTML






To Date Source

  
    
<html>
<body>
<button onclick="var myA = new Array(10,11,12,13,14,15); 
                 alert(myA.toSource());">Array TOSOURCE</button>
                 
                 
<button onclick="var myDate = new Date(); alert(myDate.toSource());">
Date toSource
</button>
</body>
</html>

    
      
        
    
  








Related examples in the same category

1.Get Day
2.Get Seconds
3.Get Month
4.Get Milliseconds
5.Get Full Year
6.Get Year
7.Get Time
8.Convert Date to Locale String()
9.Value Of a Date
10.Readable date value
11.Output date and time in a human readble form
12.Make the time readable
13.Local time and local date
14.Use toPrecision to set the date precision