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 8439065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:54:11+00:00 2026-06-10T07:54:11+00:00

I keep finding complex solutions to similar questions, but what I’m needing I think

  • 0

I keep finding complex solutions to “similar” questions, but what I’m needing I think is much more simple.

I have a table that has “Winners” in it. Name, address, etc… and most important, the date that they won. I then want to display this on the website.

SELECT FirstName, LastName, Prize, Winning_Date FROM Prize_Table
ORDER BY Winning_Date DESC

Now the Winning_Date column is data type date.

So here’s my question.

If the date is 2012-01-01, I want to be able to display just the month, and the year… in regular text.

e.g.:

January, 2012

It would also be nice to be able to place just the month abbreviated (Jan) and the year, in two different places within span tags. Kinda like you see those little calendar icons with the month, and year… and/or date, etc.

JAN

2012

I want to make sure that I preserve the ability to order by date as well… month, year is fine.

Thank you for your help.

  • 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-10T07:54:13+00:00Added an answer on June 10, 2026 at 7:54 am

    You can do it like this:

    SELECT FirstName,
           LastName,
           Prize,
           datename(mm, Winning_Date) + ', ' + datename(yyyy, Winning_Date) AS 
    FROM Prize_Table
    ORDER BY Winning_Date DESC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep finding myself solving something similar to the diamond inheritance problem (but without
So this is more of a generic question. I seem to keep finding myself
Currently I'm finding I have to keep duplicating partials for different modules. I would
Keep going around circles, but I am still unclear about this. Have a feeling
I keep finding that if I have nested divs inside each other, and one
I have a jquery game that my members keep finding ways to win. It's
I'm having trouble finding older revisions of the HTML5 specification. I keep finding resources
Are there any C# GOF design pattern examples? I Keep finding this site which
Apologies for this trivial question, I'm new to WPF and keep finding blogs that
I keep finding both on here and Google people having troubles going from long

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.