[Helma-user] now macro with dateFormat filter
Hannes Wallnoefer
hannes at helma.at
Fri Feb 1 13:25:17 CET 2008
Hi Walter,
2008/2/1, Walter Krivanek, VividVisions <walter.krivanek at vividvisions.at>:
> I've update my local copy of dateFormat_filter to create Date objects
> if input is a string.
Actually, you can pass a format string to now_macro:
<% now format="yyyy" %>
If do want the now macro with a filter chain, could just implement a
macro that returns a raw date instead of a formatted string:
function nowdate_macro() {
return new Date();
}
<% nowdate | ... %>
hannes
More information about the Helma-user
mailing list