Connecting Tech Pros Worldwide Forums | Help | Site Map

STR_TO_DATE Problem

Newbie
 
Join Date: Nov 2007
Posts: 17
#1: Nov 16 '07
Hi All,

Please test it out.

Expand|Select|Wrap|Line Numbers
  1. SELECT STR_TO_DATE('01/01/69','%m/%d/%y');

I got this result:
2069-01-01

Please help to make it to 1969-01-01. Thanks

mwasif's Avatar
Moderator
 
Join Date: Jul 2006
Location: Pakistan
Posts: 719
#2: Nov 16 '07

re: STR_TO_DATE Problem


Kindly do not ask questions in MySQL Articles area. I am moving it to MySQL Forum.
Newbie
 
Join Date: Nov 2007
Posts: 17
#3: Nov 16 '07

re: STR_TO_DATE Problem


Quote:

Originally Posted by newbieBrian

Hi All,

Please test it out.

Expand|Select|Wrap|Line Numbers
  1. SELECT STR_TO_DATE('01/01/69','%m/%d/%y');

I got this result:
2069-01-01

Please help to make it to 1969-01-01. Thanks

I fixed the problem.
Reply