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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:07:34+00:00 2026-06-12T04:07:34+00:00

I have a quick question regarding the values returned form MySQL. Within one of

  • 0

I have a quick question regarding the values returned form MySQL.

Within one of my tables, I have a column assigned the date data type. When information is inserted into the database, curdate() is automatically executed to insert the proper date.

That said, MySQL recognizes that value is a date. I have a php script that pulls that value and presents it to the user. Now, is that value a string from php’s standpoint?

What I want to do is, if necessary I should say, use the pulled value and insert that into a new table (ex: 10/1/12 pulled by php and then inserted into a new table). If that’s the case, can I simply put that value into the new table’s column that is of data type date? Or will MySQL not recognize that as a date?

Any insight is appreciated.

  • 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-12T04:07:35+00:00Added an answer on June 12, 2026 at 4:07 am

    MySQL is smart enough to cast strings into a date. The string should be able to be just about any standard format and it will translate it properly.

    EDIT: Sorry, I was incorrect.

    You can use PHP or MySQL date parsing functions to handle this. In PHP:

    date("Y-m-d", strtotime($row['myDateField']));
    

    Here is a list of valid date strings that strtotime can interpret:
    http://www.php.net/manual/en/datetime.formats.date.php

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

Sidebar

Related Questions

I have a quick question regarding the creation of absolute URLs within a symfony
Quick question regarding Google Maps. I have one fully working Google Maps project and
I have a quick question regarding getting a specific value from a data grid,
I have a quick question regarding debug and release in VS 2008. I have
Hi I have a quick question regarding json responses from the web services, I
I am somewhat new to LINQ and have a quick question regarding deleting. Say,
Good afternoon, I have a quick 'top level' question regarding the usage of Facebook
I have quick question for you SQL gurus. I have existing tables without primary
I have this quick question, i have got the username variable from a form
I have this quick question regarding cost estimation using Function Points. We are doing

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.