So I am just logging to my database and provide the date. My C# backend is like so.
var dateAndTime = DateTime.Now;
log.Date = dateAndTime.Date;
I then submit it to my db and it displays perfectly from select statements inside Microsoft SQL Server Management Tool 2014.
I load it through javascript like so it by so
LoaderService([
{
name: 'logs',
url: $config.serverAddress + 'Logs/GetAllLogs',
error: 'cantloadlogs'
}
]).response(function(isReady, data, errors) {
$scope.isReady = isReady;
$scope.isError = errors.length > 0;
$scope.errors = errors;
if (isReady) {
$scope.logs = data.logs;
return console.log(data.logs);
}
});
I then display it through HTML in an ng-repeat like so.
<td id="logs--row-{{$index}}-column-3">{{log.Date}}</td>
But when I actually view my web page the date displays in this format.
2019-06-05T00:00:00
Can anyone explain where T00... is coming from and how to stop it?
Another point to note I am storing it in my database as a date attribute.