/ Published in: JavaScript
Will convert all of the mysql dates on the page to be localized.
Expand |
Embed | Plain Text
// javascript:document.body.innerHTML%20=%20document.body.innerHTML.replace(/(\d{4})-(\d{2})-(\d{2})/ig,function(match,year,month,day){return%20(new%20Date(year,month,day).toLocaleString())%20}); document.body.innerHTML = document.body.innerHTML.replace(/(\d{4})-(\d{2})-(\d{2})/ig,function(match,year,month,day){return (new Date(year,month,day).toLocaleString()) });
Comments
Subscribe to comments
You need to login to post a comment.

try dates like this 2010-04-05 will be converted to something more readable, depending on your browser settings..
try clickMe
The last comment didn't work, try clicking the URL above