Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9006623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:27:41+00:00 2026-06-16T01:27:41+00:00

I am doing upcoming event which takes data from MySQL of another script (in

  • 0

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)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:27:43+00:00Added an answer on June 16, 2026 at 1:27 am

    With PHP you can also do it:

    $date = strtotime($row['Date']);
    echo date('D j', $date);
    

    More on date() and formatting options: http://php.net/manual/en/function.date.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Django web app, an event's status changes from 'upcoming' to 'completed' at
I am trying to return the the attribute values from this XML, which is
Im doing some research for an upcoming project and I am wondering if it
I am doing database design for an upcoming web app, and I was wondering
Doing the getting started of Sinatra. I get this error: ./sinatra.rb:5: undefined method `get'
Doing my first tryouts with foreign keys in a mySQL database and are trying
I need to display upcoming events from a database. The problem is when I
Doing this: float x = arc4random() % 100; returns a decent result of a
I am learning a new upcoming language known as Visage. This language is almost
Doing some refactoring in some legacy code I've found in a project. This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.