> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_identity/how-to-change-date-format.md).

# 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

```lua
    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 ->

```lua
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", {
```
