Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

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.

Anonymous User (20/10/2007 6:06 pm)

Anonymous User (20/10/2007 6:06 pm)


Comments

There are no comments.