How to convert a DateTime value to dd/mm/yyyy in jQuery?

前端 未结 3 1918
陌清茗
陌清茗 2021-01-16 04:57

I am having a datetime object whose value is: /Date(1475173800000)/ in jQuery. I want it to be displayed in dd/mm/yyyy in jQuery. Is there

3条回答
  •  生来不讨喜
    2021-01-16 05:37

    One of the easiest things to use for date is datejs (http://www.datejs.com/) You can use the toString method to provide the format in which you want to get the date. There are much more useful components for date manipulation in this library. Do check it out.

提交回复
热议问题