Jump to content

AtkDateAttribute

From NusaATK
Revision as of 05:50, 9 January 2010 by Guri (talk | contribs) (Added info on internal representation and parseStringValue method)

Attribute: atkDateAttribute

API docs | Flags

List of other attributes

atkDateAttribute screenshot

Note that ATK uses an internal format for storing data in attributes. The date attribute stores the date value in an array with the 'year', 'month' and 'day' elements.

To convert a string value to the internal representation, e.g. when setting an initial value, use the attribute method parseStringValue.

  $attr = $this->getAttribute("orderdate");
  $record["orderdate"] = $attr->parseStringValue("2010-01-09");