frvgs
September 10, 2023, 6:47pm
1
8 Likes
A huge thank you for all your hard work. Incredible.
Is it possible to change the date of birth format to DD/MM/YYYY?
frvgs
September 10, 2023, 7:55pm
3
Hey thank you,
To change the date format you will have to modify the script.js :
window.addEventListener("message", (event) => {
if (event.data.type === "enableui") {
document.body.classList[event.data.enable ? "remove" : "add"]("none");
}
});
document.querySelector("#register").addEventListener("submit", (event) => {
event.preventDefault();
const dofVal = document.querySelector("#dateofbirth").value;
if (!dofVal) return;
const dateCheck = new Date(dofVal);
const year = new Intl.DateTimeFormat("en", {
year: "numeric"
}).format(dateCheck);
const month = new Intl.DateTimeFormat("en", {
month: "2-digit"
}).format(dateCheck);
This file has been truncated. show original
1 Like
frvgs
September 11, 2023, 7:51pm
5
But what format you are looking for ? because itβs already in DD/MM/YYYY format actually.
i have the same βissueββ¦
i want the date also in dd/mm/yyyyβ¦ but no idea howβ¦
and can we get german letters like Γ€ ΓΆ ΓΌ for the lastname?
bcs in german many people named like βmΓΌllerβ or something
EDIT: i fixed the issue with the german lettersβ¦
frvgs
September 12, 2023, 9:36pm
8
I just checked and the reason the date appears as MM/DD/YYYY on your form is due to your game or system locale settings. If for example you switch to french it will be DD/MM/YYYY
1 Like
frvgs
September 12, 2023, 9:38pm
9
I just updated the input pattern to support special character (like Γ€ ΓΆ ΓΌ ), you can get the update from Github.