/ Published in: JavaScript
converts date/time that sharepoint kicks out to m/d/y format.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function dateCorrect(oldString) { var result = oldString.split(" ")[0]; result = result.split("-"); return result[1] + "/" + result[2] + "/" + result[0] ; }