I am using angularJs, in this fetching date from the database, in response I get "2017-11-25T18:30:00.000Z" date in this format. "2017-11-25" in the angular controller. I tried different suggestion it didn't work. I only have to change the "jobBatchDate" format in scripting part only.
Can anyone help me out? Thanks :)
$scope.File_Request = function (jobCarrierName,jobFileType,jobBatchDate) {
// $scope. = [];
$scope.jobName = jobCarrierName;
$scope.jobFile = jobFileType;
$scope.batchDate = jobBatchDate;
$http({
method: 'GET',
url: '../fileReCreate/',
params: {"carrier": $scope.jobName,"filetype": $scope.jobFile,"batchDate":$scope.batchDate},
headers: {'Content-Type': 'application/json'}
})
.success(function (data, status) {
// $scope.scanformdetail = data;
alert(data.toString());
console.log("File Re-Create Response");
// $scope.dispense = true;
})
.error(function (data, status) {
alert("Error in Re-Creating File");
});