Re: now macro with dateFormat filter

"Walter Krivanek, VividVisions" <[email protected]> Fri, 1 Feb 2008 13:38:41 +0100
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
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 <[email protected] 
> >:
>
>> 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 | ... %>

_______________________________________________
Helma-user mailing list
[email protected]
http://helma.org/mailman/listinfo/helma-user
smime.p7s (application/pkcs7-signature, 2.4 KB) - not displayed