0

I'm storing a Date-time data into the SQL Server using a date-picker. Now I tried to retrieve that data, but it's coming as follows, "/Date(1573065000000)/".

function populateDate(data) {
    $("#date").val(data.issuedate)
}

Above code is using to retrive date from the db. I need to convert this to get the date as follows, 11/07/2019.

Salman A
  • 262,204
  • 82
  • 430
  • 521

1 Answers1

0

You can use this in your sql SELECT statement

SELECT 
   DATE_FORMAT(date_column, '%d/%m/%Y')
FROM table_name;
subhan
  • 45
  • 7