On 3 Nov 2011, at 12:21, Adam Jimerson wrote:
Also would it accept a ymd hms format or do they have to be separate?
Please see the fine documentation for DateTime.
Another option is to add a 'format_date' method to your view, and use
the expose_methods config setting for View::TT..
In your TT code you'd then say [% WHILE (row = mydata_rs.next);
format_date(row.my_date_field); END %]
Cheers
t0m
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/