Date __construct(
[string
$date = '']
)
|
|
Constructor. Leave $date param empty to default to now.
Parameters:
string |
$date: |
Date string in the ISO format YYYY-MM-DD. |
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | IllegalArguementException |
Get the day part
API Tags:
Information Tags:
Get the date value as a string in the format "DD/MM/YYYY"
API Tags:
Information Tags:
Get the month part
API Tags:
Information Tags:
Get the validation rule
API Tags:
Information Tags:
Return the value in UNIX timestamp format
API Tags:
Information Tags:
Get the date value as a string in the format "MM/DD/YYYY"
API Tags:
Information Tags:
Get the textual weekday part, e.g. Monday
API Tags:
Information Tags:
Get the year part
API Tags:
Information Tags:
void populateFromString(
string
$date
)
|
|
Accepts a full date string in YYYY-MM-DD format and populates relevent Date attributes.
Parameters:
API Tags:
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
void setDateValue(
integer
$year, integer
$month, integer
$day
)
|
|
Set the Date attributes to match the three values provided
Parameters:
integer |
$year: |
|
integer |
$month: |
|
integer |
$day: |
|
API Tags:
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
void setRule(
string
$rule
)
|
|
Set the validation rule
Parameters:
API Tags:
Information Tags:
void setValue(
string
$date
)
|
|
Accepts a full date string in ISO YYYY-mm-dd format and populates relevent Date attributes.
Parameters:
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | IllegalArguementException |
Implementation of:
- AlphaTypeInterface::setValue()
- Set the value of the type