I am working on some financial programming and I need to get some dates converted from like 14-Jan-05 to something like 2005-01-14.
I want to pull the historical data off yahoo in csv format and put it into a database, however I can't then make the selects I want in the format yahoo provides (14-Jan-05)
is there a good way, either in the csv file or the query to change the dates to the format I want? I tried something like
$result = mysql_query("SELECT * FROM yahootemp WHERE date_format(Date,\"%Y-%d-%m\") > 2005-01-01")
which didn't work. The csv data looks like this before I insert it into mysql...
Date,Open,High,Low,Close,Volume,Adj. Close*
14-Jan-05,9.09,9.34,8.96,8.96,237400,8.96
any help is appreciated!!