I just want to change the shape of the numbers from Persian to English(i mean like this 1400/06/31). I mean to keep it Persian. Only the text font should be English. How can I do this?
var today = new Date().toLocaleDateString('fa-IR');
var field = document.querySelector('#tday');
field.value = today;
<input type="text" name="tday" class="form-control w-100 text-center d-inline-block" id="tday">