Date
Summary
Validates and stores a date value.Properties
Name | Internal name | Searchable | Information collector |
---|---|---|---|
Date | ezdate | Yes. | No. |
Description
This datatype allows the validation, storage and retrieval of dates consisting of a year, month and day value. The valid input range is 01.01.1970 - 19.01.2038. The following screenshot shows the class attribute edit interface of this datatype.
![Class attribute edit interface for the "Date" datatype.](../../../../../var/doc/storage/images/ez_publish/technical_manual/4_0/images/reference/datatypes/date_class_attribute_edit_interface_png/6610-1-eng-GB/date_class_attribute_edit_interface_png_doc.png)
Class attribute edit interface for the "Date" datatype.
Default value
The "Default value" parameter has two options: "Empty" and "Current date". The default setting is "Empty", which means that when a new object is created, the attribute using this datatype will be empty. If the "Current date" setting is used, the current date will be set when a new object is created.
Object attribute edit interface
The following screenshot shows the object attribute edit interface for this datatye.
![Object attribute edit interface for the "Date" datatype.](../../../../../var/doc/storage/images/ez_publish/technical_manual/4_0/images/reference/datatypes/date_object_attribute_edit_interface/9480-3-eng-GB/date_object_attribute_edit_interface_doc.png)
Object attribute edit interface for the "Date" datatype.
Raw output
The ".content" of an ezcontentobjectattribute object using this datatype returns an ezdate object.
Balazs Halasy (21/02/2005 2:36 pm)
Balazs Halasy (02/05/2005 7:59 am)
Comments
Ridiculous lower limit on date.
Thursday 06 April 2006 9:05:59 pm
TC
Yes, I know about epoc. Still there are no reasons to implement such limits in any system.
What is the proper way to register dates before 1970 in eZ?
Re: Ridiculous lower limit on date.
Wednesday 21 June 2006 6:35:40 pm
developer
Re: Ridiculous lower limit on date.
Tuesday 06 February 2007 3:45:04 pm
me