I need to format this -> 1584094135205
I have tried these two functions:
date ("Y-m-d", strtotime (1584094135205))
// 1969-12-31 21:00:00
date ("Y-m-d", 1584094135205);
// 52167-12-11
The value is saved in a database from a Minecraft server when they are registered.
The date that should be output is: 2020-01-12