We are using java as Backend ,in which we use the ISO 8601. To pass the the same I need to convert the date into same format.
in java we use
DateFormat iso8601 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX");
similarly how to convert the date into the very same format in Angular/TypeScript
I'm attaching an Image for your reference for the date format. please see the image.