When I retrieve a date value from my angular interface, it appears in the following format.
Sat Dec 29 2018 08:42:06 GMT+0400 (Gulf Standard Time)
However, when I receive the data from an API, the JSON result looks like this. How can I make it the same type?
2018-12-27T13:37:00.83
This is how it is defined in Typescript:
export interface header{
vr_date : Date
}
And this is how it is defined in my Asp API class:
public class header
{
public Nullable<System.DateTime> vr_date { get; set; }
}