Our requirement is to set the date input field format to mm/dd/YYYY
As far as I know, the format is controlled by users' OS environment.
For example, if a user from China the format might by dd/mm/YYYY
If I'm from US the format might be mm/dd/YYYY
Is it possible to enforce
the format at mm/dd/YYYY
no matter the user's locale settings?
<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date -->
<form>
<div>
<label for="bday"> Enter your birthday:</label>
<input type="date" id="bday" name="bday" required >
<span class="validity"></span>
</div>
<div>
<input type="submit">
</div>
</form>