Hi
I'm extracting a date from my mysql database - which is in the "DATE" format, i.e. yyyy-mm-dd.
I want it so that it is stored in a variable as a processed string - i.e. in the format: $date = yyyymmdd, without the "-" characters.
I've got an idea of how to do this, but I'm not sure if it's the best way. I thought of doing it by having three variables - $year, $month and $day. And then store the relevant info in each variable using the Substr() function. Then I can concatenate the var into one var. Is this a good way? Is there an easier way?