Posted By

rumremix on 05/10/10


Tagged

javascript date format sharepoint


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jlaws0n


sharepoint javascript date formatter


 / Published in: JavaScript
 

converts date/time that sharepoint kicks out to m/d/y format.

  1. function dateCorrect(oldString)
  2. {
  3. var result = oldString.split(" ")[0];
  4. result = result.split("-");
  5. return result[1] + "/" + result[2] + "/" + result[0] ;
  6. }

Report this snippet  

You need to login to post a comment.