cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: Getting current date in Cocoon
Date Tue, 26 Apr 2005 18:22:42 GMT
>I'm trying to get the current date to compare against a Dublin core meta tag
>value. I can do this with JavaScript and PHP, but I would like to do this in
>Cocoon. Is there any way to get the current date in Cocoon and use it to
>compare against an element attribute value. I know enough about XSP, XSLT,
>etc to do the comparison. I just need to know if I can get the current date.

in your XSP do:

Date newDate = new Date();

in your flowscript do:

var newDate = new Date();

So in reply to yourr question, the answer is yes ;-)



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message