Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

ezdate

Summary

Contains information about a date.

Persistent

No.

Attributes

Attribute

Type

Static*

Description

timestamp

string

Yes.

The date as a UNIX timestamp (for example "567990000") if the date is a valid date, NULL otherwise.

is_valid

boolean

Yes.

Returns TRUE if the date is a valid date, FALSE otherwise.

year

string

No.

The year (for example "1988").

month

string

No.

The month (for example "01").

day

string

No.

The day (for example "01").

* Indicates whether the attribute provides a pre-fetched value or if it needs to be computed upon request.

Balazs Halasy (12/03/2005 4:10 pm)

Svitlana Shatokhina (09/02/2007 9:32 am)

Balazs Halasy, Svitlana Shatokhina


Comments

  • attribute_view_gui and date

    Can "attribute_view_gui" handle date attributes ?
    • Re: attribute_view_gui and date

      Are there date formatting options with attribute_view_gui ?
  • ezdate datatiype format

    That is the way to format the content of the datatype ezdate

    datetime.ini.append.php :
       [ClassSettings]  Formats[<myclass>]=%Y.%M.....
    


    yourtemplate.tpl:
    {$node.data_map.date.content.timestamp|datetime('<myclass>')}