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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:46:24+00:00 2026-05-28T19:46:24+00:00

In my mySQL database, I have a DATE value in the format YYYY-MM-DD. In

  • 0

In my mySQL database, I have a DATE value in the format “YYYY-MM-DD”. In my PHP web-page, I retrieve the value from the database and write it to the HTML output. However, I would like to change the formatting of that value.

Example:

"2012-02-01"

I would like to output:

"February 1, 2012"

Is there a built-in PHP-function which can achieve that, or do I have to write my own function for that?

  • 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-05-28T19:46:26+00:00Added an answer on May 28, 2026 at 7:46 pm

    Use date(),

    date("F j, Y", strtotime("2012-02-01"));
    

    Although it’s probably better to use mktime() instead of strtotime() so that it’s unambiguous,

    date("F j, Y", mktime(0, 0, 0, 2, 1, 2012));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a date entry in yyyy-mm-dd format in mysql database. Using php i
The MySQL database has a date field in this format: yyyy-mm-dd (2009-12-01) When this
In mysql database i have this column called: Name: Date Type: datetime I have
I have data in an MYSQL database that looks like this: Project Date Time
In my mysql database I have the following information in a page name field.
PLATFORM: PHP & mySQL I am storing the date+time in database in the following
I have a date. The format is: 1298588277.0 Note the decimal. This is from
Essentially I have a mysql database with users and their corresponding date of birth.
I have 3 tables in a MySql Database: User; Company that has a date
I have a page where I get a date/time to insert into a MySQL

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.