MyBB Community Forums

Full Version: Date Format Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I searched "Date" without quotes and couldn't find my answer so I decided to make a topic about this. Now I looked on http://us.php.net/manual/en/function.date.php to modify my date format but I couldn't find what I want. I want it where it will say "Today" if it was posted on the present day or "Yesterday" if it was posted on the previous day. But after Yesterday just have the date like for example Jul 4, 2009.
I don't think you can do that through the formatting. Even on my CMS, I had to make a custom function to calculate it.
Is that not what it does anyway...?? Undecided
(2009-07-08, 11:52 PM)MattRogowski Wrote: [ -> ]Is that not what it does anyway...?? Undecided
For some reason, no - but it's most common to not happen in plugins. Most plugins, that I've used, simply use the PHP date function, for whatever reason.
It says Today and Yesterday here if it was posted today or yesterday... am I missing something?? Confused Unless the OP isn't being specific on where they want this to take effect...
nevermind I feel like an idiot...sorry lol you may lock and/or delete this thread