MyBB Community Forums

Full Version: How To Convert Unix To 'Mon YYYY'?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I used {$mybb->user['regdate']} to pull the registration date of users from the database but it is in Unix, and looks something like "1395734862".

How would I convert this Unix sequence to show "Mar 2014"?

Or is there another way to pull users Registration date from the DB to show 'Mon YYYY'?
You can do it in PHP through the date() function. I'm not sure if there is a way to do it in templates or not though.
http://php.net/date