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

  • Home
  • SEARCH
  • 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 7085685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:27:18+00:00 2026-05-28T07:27:18+00:00

Hey I’ve been making a quiz on php and mysql… I’ve used the CURRENT_TIMESTAMP

  • 0

Hey I’ve been making a quiz on php and mysql…

I’ve used the CURRENT_TIMESTAMP to keep track of the time that users answer on specific questions. Now I would like to print out the time, and I’ve made a row in my database called ‘timestamp’.

It works perfectly to track which users answered first, but when i echo out the row, it looks like this:

2012-01-11 17:14:50

So my question is:

How do I break this up in time and date?

I can’t have 2 rows in my database for storing the time, cause as I said I use the CURRENT_TIMESTAMP to track which users answered first.

The way it’s printed out now isn’t very nice to look at, and it’s not very flexible to work with.

Hope anybody can help out,

Thanks alot for reading.

Mathias.

  • 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-28T07:27:19+00:00Added an answer on May 28, 2026 at 7:27 am

    It sounds like you just want the datetime formatted in an aesthetically pleasing way. Check out this website: http://www.mysqlformatdate.com/ for all sorts of formats and find what you like best and add it to your select statement.

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

Sidebar

Related Questions

Hey, I'm looking to find a good MySQL framework for Cocoa that I can
Hey, I've been developing an application in the windows console with Java, and want
Hey all. Newbie question time. I'm trying to setup JMXQuery to connect to my
Hey peoples, I've been studying Java for a couple of weeks, and have decided
hey guys how to make these php html links codes possible. i have tried
Hey I'm building an app that will allow a user to log into a
Hey so I've been searching around for this topic and couldn't find a whole
Hey I thought about writing a function that prompts me in certain situations (perl
Hey everyone I have a basic search function here that allows me to search
Hey guys I am making a terminal application using Swing and Apache Commons. 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.