dates with optional fields

Author Message

Pablo C. Vergara Castro

Thursday 17 June 2004 6:55:34 am

Hi to all.

I would like to know if it is possible to create attributes with data type Date in which it is the obligatory to write the month and the year but not day. In other words attributes Date with optative field day.

In case that this can be done, how can I diff the fields with the written day of which they do not have writing?

Mark Marsiglio

Thursday 17 June 2004 11:37:18 am

Instead of using the date datatype you might be able to do this using a series of selectors (pull down lists) or text line fields. Have one for month, one for day, one for year, and make the day one optional. It would require a bit more customization of your templates to display the content, but it could work.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Pablo C. Vergara Castro

Thursday 17 June 2004 12:50:32 pm

That answer already waited for I: - (.

I am afraid that I prefer to use the data type date because:

a) Exists processing functions you specify for that data type (add of dates, shorting, etc.)

b) At the time of internationalizing it will not be necessary to create specific functions

c)...

Even so thanks for the answer; -)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.