john john - 1 year ago 57
SQL Question

How to remove time from date in JavaScript pulling record from SQL

@Html.Raw(Helper.FormatData("Sale Date: ",
null, true))

This is the code that pulls record from SQL. The data was updated and the Sale_ Date column data type was changed.
now I get the result as
02/01/1999 12.00.00 AM
I would like it to display as

Is there any JavaScript code that convert this code?

Kld Kld
Answer Source
    @Html.Raw(Helper.FormatData("Sale Date: ",((DateTime)headerData.Tables[0].Rows[0]["Sale_Date"]).ToString("d"),
 null, true))
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download