[ic] date selector

Greg Goble interchange-users@icdevgroup.org
Thu Mar 20 02:31:01 2003


Paul Jordan wrote:
> > Hi folks,
> >
> > IC4.8.5
> >
> > I'm using the date selector in the admin interface and
> naturally I get
> > 20030319 as a result if I were to select today's date. Is there
> > anyway that
> > I can get just the year from this value to use elsewhere,
> let's say in the
> > flypage?
> >
> > Example: [item-field date] would give me 20030319
> >
> > and I want [item field just_the_year_from_date] 2003
> >
> > Thanks, Greg G.
>
>
> Highly reccomend:
>
> http://www.icdevgroup.org/cgi-bin/ic/docfly.html?mv_arg=ictags06%2e03
>
> [convert_date fmt="%Y"][item field
> just_the_year_from_date][/convert_date]
>
>
> Somewhat reccomend:
>
> http://www.icdevgroup.org/cgi-bin/ic/docfly.html?mv_arg=ictags04%2e28
>
> [filter 4][item field just_the_year_from_date][/filter]
>
>
> If you are using Mysql and the query tag, you can format it
> in the query.
>
> http://www.mysql.com/doc/en/Date_and_time_functions.html
>
> YEAR(just_the_year_from_date)
>
>
> Or, with perl
>
Thanks Paul, Racke & Michael! One just needs to know 'what' to look for and
then it makes sense. I use the ICDEV doclfy quite a bit, but it never
occured to me that a convert_date would do the job. Ref: urls also
appreciated. Perfect!

Thx, Greg G.