CassidyHunt
IS-IT--Management
I have an xml file that gives me the date in this format:
2006-01-19T02:50:00.0000000-08:00
I would like to have it in this format:
01/19/2006 8:00 a.m.
I am loading it using a XSLT file and ASP.Net so I would also need to fire the event off using onload. I found that doesn't work with a table cell.
Here is as close as I have gotten:
Any help is appreciated.
Thanks
Cassidy
2006-01-19T02:50:00.0000000-08:00
I would like to have it in this format:
01/19/2006 8:00 a.m.
I am loading it using a XSLT file and ASP.Net so I would also need to fire the event off using onload. I found that doesn't work with a table cell.
Here is as close as I have gotten:
Code:
function getDate(_this) {
var D = _this.test.replace(/^(\d{4})-(\d{2})-(\d{2})T([0-9:]*)([.0-9]*)(.)(.*)$/,'$1/$2/$3 $4 GMT') //;
_this.innerHTML = D;
}
Any help is appreciated.
Thanks
Cassidy