C
comeonthespurs2003
Guest
Hi guys
I have a string that is formatted as 201006221650 - Human readable this would be 22/06/2010 16:50.
I am trying to convert this to correct MySQL format using the str_to_date function within PHP.
This is my code:
$fnarray[] = str_to_date($fnarray[3], '%Y%m%d%H%i' );
Unfortunately it is not working, and I cannot work out what is wrong with it. It is taking the string value from $fnarray position 5, and pending the outcome to the end of the array.
Any ideas?
P
I have a string that is formatted as 201006221650 - Human readable this would be 22/06/2010 16:50.
I am trying to convert this to correct MySQL format using the str_to_date function within PHP.
This is my code:
$fnarray[] = str_to_date($fnarray[3], '%Y%m%d%H%i' );
Unfortunately it is not working, and I cannot work out what is wrong with it. It is taking the string value from $fnarray position 5, and pending the outcome to the end of the array.
Any ideas?
P