onfocus this type date code example
Example 1: add placeholder in input type date
<input type="text" placeholder="Date of birth" onfocus="(this.type='date')">
Example 2: placeholder in date input html
<input placeholder="Date" class="textbox-n" type="text" onfocus="(this.type='date')" id="date">