Hi,

I'm looking for a generic way to re-format date-values i fetched from
mysql....so, the complete context:

We have a complex cake web-app using a mysql db. So, the default date-
format returned by mysql is yyyy-mm-dd. This was fine for a long time.
Now our lovely marketing has decided that our sales will increase by
200023904906% if we change the date-format in the views to dd.mm.yyyy.
Unfortunatley we are reading date-values from different models and use
them in several views...so switching the format by editing the queries
or re-format the dates in the views would be a very time-expensive
thing.

I thought of a afterfind-callback in the app_model to have at least
something generic, but i'm not sure if there is a smarter way to solve
this problem. Can anyone help?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to