i want to show datetime in the format March 03, 2017 T 07:30:00
this is my script
<script>
$(document).ready(function () {
var from = "";
$('#loadings').show();
$.ajax({
type: "GET",
url: 'http://apis.fdf.df/api/Get_Loadsheet_Details/<?php
echo $number; ?>',
dataType: 'json',
success: function (response) {
$('#loadings').hide();
console.log(response);
document.getElementById('ldate').innerHTML =
response[0].DATE;
}, error: function (errors) {
console.log(errors);//alert('hi');
$('#loadings').hide();
$('#error').html("<h2><span style='color:red;'>No data
found on this LR No.</span></h2>");
}
});
});
</script>
my api's console output is
[{"DATE":"2017-04-03T00:00:00","lrConfirmStatus":null,"lrLoadStatus":null}]
i want to bind it to the field with id "ldate"
<tr>
<td>LOAD DATE:</td>
<td id="ldate"> </td>
</tr>