javascript mm dd yyyy format

 

 

 

 

Some JavaScript engines can parse that format directly, which makes the task pretty easy: Function convertDate(inputFormat) function pad(s) return (s < 10) ?