Results 1 to 4 of 4

Thread: MySQL datetime problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    484

    MySQL datetime problem

    Hi all,

    I am trying to use the SQL statement below
    INSERT INTO (mytime)
    VALUES('14 July 2006')

    it doesn't work, it's complaining about my date is incorrect, can anyone help?

    Regards

    PlayKid

  2. #2
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: MySQL datetime problem

    where you have mentioned your table name in the query. mytime is your field name right...
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  3. #3
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: MySQL datetime problem

    MySql date format is yyyy/mm/dd. Try '2006/07/14'.
    Tengo mas preguntas que contestas

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: MySQL datetime problem

    YYYY-MM-DD will also work, and is somewhat common to many relevant databases. (Where relevant databases imply either SQL Server and MySQL. Others unknown)

Posting Permissions

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



Click Here to Expand Forum to Full Width