How to change date format
index.html line 70
placeholder="DD/MM/YYYY"
-> placeholder="YYY/MM/DD"
script.js line 90
let date = luxon.DateTime.fromFormat(this.userData.birthday, "dd/MM/yyyy");
``To ->
let date = luxon.DateTime.fromFormat(this.userData.birthday, "yyyy/MM/dd");
script.js line 133
$('.date').mask('00/00/0000');
-> $('.date').mask('0000/00/00');
server/core.lua line 74
MySQL.Async.execute("UPDATE users SET firstname=@firstname, lastname=@lastname, dateofbirth=STR_TO_DATE(@birthday,'%d/%m/%Y'), sex=@sex, lore=@lore WHERE identifier=@identifier", {
To ->
MySQL.Async.execute("UPDATE users SET firstname=@firstname, lastname=@lastname, dateofbirth=STR_TO_DATE(@birthday,'%Y/%m/%d'), sex=@sex, lore=@lore WHERE identifier=@identifier", {
Last updated
Was this helpful?