Get Template::Plugin::Date to accept MySQL dates as well as datetimes
Posted
by aidan
on Stack Overflow
See other posts from Stack Overflow
or by aidan
Published on 2010-03-13T14:45:35Z
Indexed on
2010/03/13
14:55 UTC
Read the original article
Hit count: 245
I'm using the date plugin for Template::Toolkit (Template::Plugin::Date), it works well with datetimes (yyyy-mm-dd hh:mm:ss) pulled straight out of MySQL, but it will not work with dates (yyyy-mm-dd).
What's the simplest way to get date.format to accept dates (without modifying the sql query)?
Thanks.
© Stack Overflow or respective owner