[Helma-user] now macro with dateFormat filter
Walter Krivanek, VividVisions
walter.krivanek at vividvisions.at
Fri Feb 1 13:38:41 CET 2008
Hi Hannes,
Oh, obviously I couldn't see the wood for the trees, how
embarrassing. ;-)
Thanks!
Walter
Hannes Wallnoefer (01.02.2008 13:25):
> 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 | ... %>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2445 bytes
Desc: not available
Url : http://helma.org/pipermail/helma-user/attachments/20080201/72c76c60/attachment.bin
More information about the Helma-user
mailing list