I am currently working with the datepicker control, and I need to adjust the date format based on my browser's settings - either dd/mm/yyyy or mm/dd/yyyy.
For example: if my browser date is 22/06/2019, then I should use "dd/MM/yyyy" format in the datepicker. If my browser date is 02/16/2019, then I should use "mm/dd/yyyy" format in the datepicker.
How can I achieve this customization in TypeScript or Angular 6?