In my application,I retrieve a timestamp from the table which is of the format 2009-08-18 12:09:01. I need to change this to August 18th,2009 or 18 Aug,2009. How to achieve this in CakePHP?
Are there any built in methods?
收起
You can use strptime to parse the string into a datetime and then strftime to format it back into the string you want.
报告相同问题?