From the api
setToStringFormat( string|array|integer $format )
That doesn’t tell me what to put for
- string
- array
- I am guessing integer $format would be ‘Y-m-d H:i:s’
Why is it so hard in cakephp just to globally default to: Y-m-d H:i:s or Y-m-d if no time needed.
Or what format someone wants to set, why a silly class.
As another person stated, the docs can really leave you hanging, as there aren’t clear concise examples of some stuff.