Return to Snippet

Revision: 26772
at May 10, 2010 12:15 by rumremix


Initial Code
function dateCorrect(oldString) 
{
	var result = oldString.split(" ")[0];
	result = result.split("-");
	return result[1] + "/" + result[2] + "/" + result[0] ;
}

Initial URL

                                

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

Initial Title
sharepoint javascript date formatter

Initial Tags
javascript, date, format, sharepoint

Initial Language
JavaScript