title: How to format date in a system date format using Angular
body: <p>I want to convert the date into a system date format. For Example,
  if the system date format is <strong>DD-MM-YYYY</strong>, then my web application should show <strong>30-11-2021</strong>,
  and on another system, if the date format is <strong>MM-DD-YYYY</strong>, then it should show <strong>11-30-2021</strong>.
  Basically, it should convert to the date format of the client's system.</p>