str_replace
You can use implode / explode as str_replace - like so:
{def $strData='09/10/2007'
$strUpdatedData=$strData|explode('/')|implode('-')}
This will substitute '-' for '/' in strData.
There are probably other ways to do this, but this is a quick, easy method.