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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:18:05+00:00 2026-05-13T20:18:05+00:00

I have created a timestamp field in mysql, where the date gets stored as

  • 0

I have created a timestamp field in mysql, where the date gets stored as 06/01/2010 07:55:40

Now if I try to search anything using a query like this :

select StartTime 
  from results 
 where timestamp(StartTime) = "30/09/2009"

it does not work.

even I cannot use this :

select * 
  from results 
  where StartTime between "06/01/2010 07:55:40" and "01/02/2010 07:55:40"

If I use:

select  timestamp(current_date());

…then it shows 02/03/2010 00:00:00

Should I change the format to something like 00-00-0000 ? Or can I search using the same format that is currently in the table?

Can anyone suggest please?

  • 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-13T20:18:05+00:00Added an answer on May 13, 2026 at 8:18 pm

    Use explicit format:

    SELECT  *
    FROM    results
    WHERE   starttime = TIMESTAMP(STR_TO_DATE('02/03/2010 21:30:00', '%d/%m/%Y %H:%i:%s'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In mysql I have a timestamp with the field name added_on . I created
I have a problem extracting the year out of a mysql timestamp field. I
In my MySql database i have a field which is a timestamp. MySQL is
I have created a stored procedure in mysql DELIMITER // CREATE PROCEDURE simpleproc ()
I have created a basic site using ASP.NET routing according to Mike Ormond's example
I have an order table in MySQL database, having a field/column which stores the
I have a timestamp field in my table. How do I delete records older
I have a MySQL table, with the field ('ad_id'). I store variables in different
I have exhausted my searches looking for a solution to this MySQL date calculation.
In a SQL Server table, I have a field named Timestamp, which is a

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.