[ic] date selector

Paul Jordan interchange-users@icdevgroup.org
Wed Mar 19 12:09:00 2003


> 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


HTH
Paul