This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: <MsSinceMidnight1Jan1970>1009843200000</MsSinceMidnight1Jan1970>


I would need to do this to every instance of <MsSinceMidnight1Jan1970>
not just the one with a specific id. BTW, the following code displays
NaN for me:

<html>
 <head>
  <script language="JavaScript">
   function fixupDates(obj){
    var d = new Date(obj.innerHTML);
	   obj.innerHTML = d.toString();
   }
  </script>
 </head>
 <body onload="fixupDates(document.getElementById('theDateField'))">
  <div id="theDateField">1009843200000</div>
 </body>
</html>

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]