When I use the DateTime picker in Angular, I receive a date and time like this: "Thu Jan 10 2019 00:00:00 GMT+0400 (Gulf Standard Time)". However, the actual date and time on my system is Jan 10 2019 09:51.
But when I retrieve data in an ASP.NET API, the date format is different: {09/01/2019 8:00:00 PM}.
Angular.
export interface sample{
vr_date: Date
}
`this.adapter.setLocale('en-GB');` // Using this to change the date format to dd/mm/yyyy.
ASP API
public class sample
{
public Nullable<System.DateTime> vr_date{ get; set; }
}