I have a date variable with the format
2008 12 29
to have it correctly display from within my database app I need the format to be
2008-12-29
Is there a way to simply add the - into the string or replace the spaces with -?
I am using PHP and the date is stored in $release_date
Use
str_replace():