I am doing upcoming event which takes data from MySQL of another script (in this case, another Joomla extension)
Thanks to Alex Mihai, I know how to show upcoming event:
SELECT * FROM EventTable
WHERE Date > CURDATE()
ORDER BY Date
LIMIT 1;
Now I need to show a date of that event in a specific way. I have date of event in a row in this format (numbers as example): 2012-12-30
Is it possible to select only the middle characters (month number) from this row and make something like this:
if 12 = December, if 01 = January and etc. (month names are just example)
For a clear image I am trying to make an upcoming event with this data:
3 first letters of the month in native language, day of the month, event title (event title already works)
With PHP you can also do it:
More on date() and formatting options: http://php.net/manual/en/function.date.php