STR_TO_DATE Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newbieBrian
    New Member
    • Nov 2007
    • 17

    STR_TO_DATE Problem

    Hi All,

    Please test it out.

    [CODE=mysql]SELECT STR_TO_DATE('01/01/69','%m/%d/%y');[/CODE]


    I got this result:
    2069-01-01

    Please help to make it to 1969-01-01. Thanks
    Last edited by mwasif; Nov 16 '07, 04:37 PM. Reason: Added [CODE=mysql] tag
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    Kindly do not ask questions in MySQL Articles area. I am moving it to MySQL Forum.

    Comment

    • newbieBrian
      New Member
      • Nov 2007
      • 17

      #3
      Originally posted by newbieBrian
      Hi All,

      Please test it out.

      [CODE=mysql]SELECT STR_TO_DATE('01/01/69','%m/%d/%y');[/CODE]


      I got this result:
      2069-01-01

      Please help to make it to 1969-01-01. Thanks
      I fixed the problem.

      Comment

      Working...