Warning: PyroCMS v2 is very old, these docs are provided free of charge, use at your own risk.
Date Helper
This helper adds functionality not available in the CodeIgniter Date Helper.
Functions
format_date($unix, $format = '')
Format a UNIX Timestamp to a specific format or use the default date format in the site settings.
| Name | Default | Required | Description |
|---|---|---|---|
| unix | Yes | A UNIX Timestamp or strtotime() valid string |
|
| format | (Site Settings Date Format) | No | The PHP Date format for the date |
