[Dbix-class] InflateColumn::DateTime - how to use it?
RA Jones
ra.jones at dpw.clara.co.uk
Thu May 10 16:25:34 GMT 2007
Matt S Trout wrote:
>> Currently doing: ( join '.', $hits->date->day, $hits->date->month,
>> $hits->date->year ) in the controllers - repetitive and probably a less
>> desirable tmtowtdi.
>>
>
> MACRO format_datetime(dt) dt.strftime('%d.%m.%Y');
>
>
Works if I do something like item.date.strftime('%d.%b.%Y'). I've not
played with Template macros yet, but will have a look. Thanks.
--
Richard Jones
**********************************************************************
This message may contain confidential and privileged information.
If you are not the intended recipient please accept our apologies.
Please do not disclose, copy or distribute information in this e-mail
or take any action in reliance on its contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone astray before deleting it. Thank you for your co-operation.
NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages are sent every day by the system. To find out why more and
more NHS personnel are switching to this NHS Connecting for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**********************************************************************
More information about the Dbix-class
mailing list