How do I format a Microsoft JSON date?

后端 未结 30 3077
伪装坚强ぢ
伪装坚强ぢ 2020-11-21 04:48

I\'m taking my first crack at Ajax with jQuery. I\'m getting my data onto my page, but I\'m having some trouble with the JSON data that is returned for Date data types. Basi

30条回答
  •  太阳男子
    2020-11-21 04:53

    Mootools solution:

    new Date(Date(result.AppendDts)).format('%x')
    

    Requires mootools-more. Tested using mootools-1.2.3.1-more on Firefox 3.6.3 and IE 7.0.5730.13

提交回复
热议问题