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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:48:33+00:00 2026-06-08T08:48:33+00:00

In field ‘a’ i have date with format TIMESTAMP . E.g. 2010-10-12 12:00:00 ,

  • 0

In field ‘a’ i have date with format TIMESTAMP. E.g. 2010-10-12 12:00:00, format is yyyy-mm-dd hh:mm:ss. What i need to do is change 2010-10-12 12:00:00 to 2010-12-10 12:00:00 without changing format (yyyy-mm-dd hh:mm:ss). Months and dates were send in wrong places. Max month is 12 and max day is 12 too (becouse months were send there). All instances with original day more then 12 are ‘0000-00-00 00-00-00’.
doing this on MySql.

tried this but it just set all dates to 0000-00-00 00:00:00
update table_a set date=concat(substring(date, 1, 4), ‘-‘, substring(date, 9, 10), ‘-‘, substring(date, 6, 7),substring(date,11,19))

  • 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-08T08:48:34+00:00Added an answer on June 8, 2026 at 8:48 am

    Make use of this example

    set @date:='2010-10-12 12:00:00';
    
    select @date, 
    concat(left(@date,5),substring(@date,9,2),'-',substring(@date,6,2),' ',right(@date,8));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a date field in the database table of this format 2012-02-1.i need
I have a Timestamp field in a WebSQL database that is stored like: /Date(1340420400000)/
I have got date field in my foos table. So now I need to
I have a field format: {2G Network:GSM 850,3G Network:HSDPA 850} How to put data
I have a field in a gridvie that displays the date in the following
i have a created field in datetime and a modified field in timestamp. this
I have one field that I need to sum lets say named items However
1)I have a field storing timestamp as text (YYYYMMDDHHMM). Can i get the results
Can I change the field public virtual ClassOne ClassOne { get; set; } to
I have a M2M field in my django model project. In my view 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.