Try this;
(试试这个;)
bear in mind that JavaScript months are 0-indexed, whilst days are 1-indexed. (请记住,JavaScript月份是0索引,而日期是1索引。)
var date = new Date('2010-10-11T00:00:00+05:30');
alert((date.getMonth() + 1) + '/' + date.getDate() + '/' + date.getFullYear());
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…