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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:54:14+00:00 2026-06-01T17:54:14+00:00

I have a string like 09-10 which is representative of mm-dd . I need

  • 0

I have a string like 09-10 which is representative of mm-dd. I need it in a format something like Monday 10th September? The problem is that I do not have a year and I can’t have an array containing months and days because I would like to know the day of the week (Mon, Tue, Wed etc.)

Any idea how to do this in PHP, preferably using date() to format the date?
Note: this is not in MySQL…

  • 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-01T17:54:15+00:00Added an answer on June 1, 2026 at 5:54 pm

    You can’t get the day (Monday, Tuesday etc) without knowing the year.

    You can use date('jS F', strtotime('2012-09-10')); to get the day of the month and month, just shove any old year in there. I’d make sure to use a leap year year though to make sure you catch those pesky feb dates properly.

    Example: http://codepad.org/JfUeTQlH

    So, like this:

    $d_m = '09-10';
    
    $my_date = date('jS F', strtotime('2012-'.$d_m));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an input string that will look something like Monday 2:00 pm and
I have a string which comes from the DB. the string is something like
I have a C# string which is representation of a mathematical expression, something like
I have a string which looks like a hash: { :key_a => { :key_1a
I have a string which looks like this a 3e,6s,1d,3g,22r,7c 3g,5r,9c 19.3 , how
I have the string "re\x{0301}sume\x{0301}" (which prints like this: résumé) and I want to
I have a string which contains a series of bits (like 01100011) and some
I have simple form like this which accepts only two values string action and
I have a string which may contain cell address, which is look like: A1,
I have a string: 'Some_string_to_capitalize' which I would like to transform to 'Some_String_To_Capitalize'. I

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.