I'm missing the boat on datetime. I'm trying to convert Ruby datetime to be compatible with mysql. I'm not getting any errors but the results always end up 0000-00-00-0000 I think it may have to do with the mysql requirement for 2 digit month and hours or the seconds. I'm not sure. When I output my conversion to my browser the output looks correct. Can someone shed some light on how to do this. Thanks