尝试这个; 请记住,Javascript月的索引是0,而天的索引是1。
var date = new Date('2010-10-11T00:00:00+05:30');alert(((date.getMonth() > 8) ? (date.getMonth() + 1) : ('0' + (date.getMonth() + 1))) + '/' + ((date.getDate() > 9) ? date.getDate() : ('0' + date.getDate())) + '/' + date.getFullYear());

![在JavaScript中将日期格式化为MM / dd / yyyy [重复] 在JavaScript中将日期格式化为MM / dd / yyyy [重复]](http://www.mshxw.com/aiimages/31/635086.png)
