This function allows you to determine the UNIX timestamp for an unformatted date value, such as the one returned when calling up e.g. the function getTableValue for a date field.
Parameter |
Type |
Description |
|---|---|---|
$date |
string |
Date in this format: YYYY-MM-DD HH:MM:SS |
This function returns the UNIX time stamp for the entered date.
Example:
…
$timestamp = $this->getTimestamp($this->getTableValue('DATE'));
…