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
Try jQuery dateFormat for easy and flexible date formatting. You simply use it like this:
var timestamp = /\/Date\((.*)\)\//; var myDate = new Date(parseInt(timestamp)); $.format.date(myDate.getTime(), "dd/mm/yyyy"));