Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    57
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Convert into datetime MySQL format.

    Hello,
    I have one column with dates stored in VARCHAR like this: 14:08:41 Nov 20, 2006.

    Now I need to move all rows in that table and insert them in another table where I need store the times in the datetime MySQL format.

    So I need to convert all times like 14:08:41 Nov 20, 2006 into datetime like 0000-00-00 00:00:00. How can I do that?

    Best Regards

  2. #2
    Super Moderator guelphdad's Avatar
    Join Date
    Mar 2006
    Location
    St. Catharines, Ontario Canada
    Posts
    2,659
    Thanks
    6
    Thanked 150 Times in 141 Posts
    see the link in my signature to do it.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •