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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:25:45+00:00 2026-06-18T05:25:45+00:00

I have a column in database whose type is datetime . Each time user

  • 0

I have a column in database whose type is datetime. Each time user changes something this gets updated to note that user changed something on website at this date/time.

The query that im using is:

INSERT INTO Test(bunch columns, ChangedAt)  VALUES (bunch values, NOW())

Now after couple of days i checked the table and there was one row having this value for the ChangedAt column:

2020-11-14 00:00:00

any ides how the hell it got 2020? and why there is time 00:00:00

thanks

  • 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-18T05:25:47+00:00Added an answer on June 18, 2026 at 5:25 am

    Only 2 possible reasons.
    computer date was wrong… wich would be a coincidence to get 00:00:00

    or the row was updated/inserted like that.

    MySQL recognizes DATETIME and TIMESTAMP values in these formats:

    As a string in either ‘YYYY-MM-DD HH:MM:SS’ or ‘YY-MM-DD HH:MM:SS’
    format. A “relaxed” syntax is permitted here, too: Any punctuation
    character may be used as the delimiter between date parts or time
    parts. For example, ‘2012-12-31 11:30:45’, ‘2012^12^31 11+30+45’,
    ‘2012/12/31 11*30*45’, and ‘2012@12@31 11^30^45’ are equivalent.

    As a string with no delimiters in either ‘YYYYMMDDHHMMSS’ or
    ‘YYMMDDHHMMSS’ format, provided that the string makes sense as a date.
    For example, ‘20070523091528’ and ‘070523091528’ are interpreted as
    ‘2007-05-23 09:15:28’, but ‘071122129015’ is illegal (it has a
    nonsensical minute part) and becomes ‘0000-00-00 00:00:00’.

    As a number in either YYYYMMDDHHMMSS or YYMMDDHHMMSS format, provided
    that the number makes sense as a date. For example, 19830905132800 and
    830905132800 are interpreted as ‘1983-09-05 13:28:00’

    as you can see.. it would be hard to insert a different value by mistake and get it inserted… 20201114000000 in your case…

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

Sidebar

Related Questions

In mysql database i have this column called: Name: Date Type: datetime I have
I have a MySQL database whose keys are of this type: A_10 A_10A A_10B
I have a database column whose type is NUMBER in oracle. I want to
In database table I have column called options . It has type of integer
I have a column type money in my sql server database, which is moneyAcumulated
I have a table ( sessions ) in a database whose 1st column contain
Ok I have a database with about 1800 rows, each has a column lat
I have a web application that inserts/updates/deletes records from a database. Each time a
We have a nullable (type long) column (named referral) in our MySQL database. We
I have column in a postgresql database. They are lottery numbers. Four digits in

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.