title: How do I change the input type="date" placeholder value in Angular?
body: <p>I have come across this and found many solutions but none fits my issue.</p>
  
  <pre><code>&lt;input type="date" #evtDate required name="evtDate" placeholder="Select Event Date" id="evtDate" formControlName="eventDate"&gt;
  </code></pre>
  
  <p>It's displayed on the browser as:</p>
  
  <p><a href="https://i.stack.imgur.com/Si1Om.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Si1Om.png" alt="enter image description here"></a></p>
  
  <p>I want to show a string placeholder here, something like:</p>
  
  <p><a href="https://i.stack.imgur.com/iHspP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iHspP.png" alt="enter image description here"></a></p>
  
  <p>I achieved this using CSS like,</p>
  
  <pre><code>input[type="date"]::before {
    content: attr(placeholder);
    width: 100%;
  }
  input[type="date"]:focus::before,
  input[type="date"]:valid::before { display: none }
  </code></pre>
  
  <p>This part has an issue here when I click on its date icon, the date input is again changed to normal format, like:</p>
  
  <p><a href="https://i.stack.imgur.com/Z3FmZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z3FmZ.png" alt="enter image description here"></a></p>
  
  <p>If I don't use this CSS part, it still shows the custom placeholder value but doesn't update anything on the input.</p>
  
  <pre><code>// input[type="date"]:focus::before,
     // input[type="date"]:valid::before { display: none }
  </code></pre>
  
  <p>I also checked that there's some dynamic HTML created for this input type="data", and that needs to be kept for data to set in that format.</p>
  
  <p><a href="https://i.stack.imgur.com/i4RKz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i4RKz.png" alt="enter image description here"></a></p>
  
  <p>Can anyone please suggest how this can be done? Thanks in advance!</p>