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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:13:05+00:00 2026-06-05T00:13:05+00:00

I have a series of data that I need to insert into a MySQL

  • 0

I have a series of data that I need to insert into a MySQL table using PHP (Codeigniter).

Problem: One of the data is a timestamp that looks like 06/01/12 01:43 PM. However when I insert it into MySQL timestamp column, it becomes 0000-00-00 00:00:00. How can I format the original format so I can insert it correctly into the timestamp col?

  • 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-05T00:13:07+00:00Added an answer on June 5, 2026 at 12:13 am

    If you wanted to perform the transformation via PHP, it’s quite straightforward:

    $oldFormat = "06/01/12 01:43 PM";
    $newFormat = date("Y-m-d H:i:s", strtotime($oldFormat));
    

    strtotime docs

    date docs

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

Sidebar

Related Questions

I have a series of data that need to be written into SQL, what
I have a table of data which represents a series of events that persons
I have some hierarchical data that I need to display in a series of
I have a table of time-series data of which I need to find all
I have a series of tables that contain data I want to full text
I am trying to have two data series plotted in one graph as boxes
I have a (C#) genetic program that uses financial time-series data and it's currently
I am using R to run simulations using time series data. I have been
I have a series of large, flat text files that I need to parse
I have some time-series data that I'm fitting a loess curve in ggplot2, as

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.