 <pre><code>var months = new Array("jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"); var ddSplit = '12/23/2011'.split('/'); //date is mm/dd/yyyy format alert(ddSplit[1]+'-'+months[ddSplit[0]-1] + '-' + ddSplit[2]) </code></pre>