It's not a php thing, it's a database thing. So, if you're using MySQL, you need to look up on their website how a date looks.
For PostgreSQL there's a date style setting you can use to control how it looks.
For Oracle, there's also a data style setting, but it's a lot more strict on how it interprets dates.