I currently am displaying dates as follows “yyyy/mm/dd” in a wordpress blog (it needs to be input in this format because a plugin is using it to define a post expiration date). I want to use jQuery to locate all of these strings on a page (they’re all in table cells) and reformat them to “mm.dd.yy”
The site is:
http://www.beattrainsoundsystem.com/category/gigs
The dates also exist in the footer on every page which I would also like to change.
Thanks!
Why not change the date format before it’s rendered to the page? I imagine somewhere in the template you’ve got something like:
Just change it to this:
Using JavaScript, IMO, isn’t the correct move here. If you want to post the part of the WordPress template that renders this data, we can give you more specific help with doing it via PHP.