OK!
Thanks!
:)

2010/11/29 Ricardo Rodriguez [eBioTIC.] <[email protected]>

>
>
> Erica Usui wrote:
> > $date, in velocity context, doesn't return any value. It just prints
> > "$date".
> >
> > What am I doing wrong?
> >
> > I want date in the format: yyyyMMdd, but $date.get('yyyyMd')doesn't work
> > here either.
> >
>
> Use (XWiki 2.0 Syntax)
>
> {{velocity}}
> $datetool.get('yyyyMd')
> {{/velocity}}
>
> Also, see http://jira.xwiki.org/jira/browse/XWIKI-5610
>
> HTH!
> > 2010/10/28 Vincent Massol <[email protected]>
> >
> >
> >> Hi Stefan,
> >>
> >> On Oct 28, 2010, at 8:15 AM, Stefan abageru wrote:
> >>
> >>
> >>> Hi Lockie !
> >>>
> >>> You can use $xwiki.getDate() inside your velocity code in order to
> >>> display the current date.
> >>>
> >> This is really deprecated stuff and shouldn't be used.
> >>
> >> Instead you should use $datetool.
> >>
> >>
> >>
> http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/DateTool.html
> >>
> >> Thanks
> >> -Vincent
> >>
> >>
> >>> Stefan
> >>>
> >>> On 10/28/2010 09:06 AM, Lockie wrote:
> >>>
> >>>> Hi all,
> >>>>
> >>>> Is there a date property I can use to automatically display the
> current
> >>>>
> >> date
> >>
> >>>> on a page? I would do it in javascript but you can't embed<script>
>  tags
> >>>>
> >> in
> >>
> >>>> {{html}} so is there a way of doing it in velocity? I can't seem to
> find
> >>>>
> >> any
> >>
> >>>> info on this.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Lockie
> >>>>
> >> _______________________________________________
> >> users mailing list
> >> [email protected]
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >>
> >
> >
> >
> >
>
> --
> Ricardo Rodríguez
> CTO
> eBioTIC.
> Life Sciences, Data Modeling and Information Management Systems
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Atenciosamente,
Erica Usui.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to