you need to convert the date string to a unix timestamp before you can use it in date() you can use the Time helper function toUnix to accomplish this or look at http://us3.php.net/manual/en/function.strtotime.php for the string to time function.
the unix timestamp is probably your sticker on this date('mask' $this->Time->toUnix($a['Post']['created'])) should get you closer (it's all the helper function is doing) On 8/21/06, c_doug <[EMAIL PROTECTED]> wrote: > > Thanks, I'll have to try that once I get a little more advanced. > > I am trying to apply different variations of PHP date functions to it. > > I am hoping to put a simple function around the 'created' variable > above. Something like: > date('mask', created). > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---