Helper: admin/util/dates

« All helpers

Helps convert dates to show in the current timezone. Loads and initializes the jQuery localize plugin.

Usage:

1. Load this handler either in your handler:

$this->run ('admin/util/dates');

Or anywhere in your view:

{! admin/util/dates !}

2. Filter your dates via:

{{ date_value|I18n::date }}
{{ date_value|I18n::time }}
{{ date_value|I18n::date_time }}

These will display dates in the following forms:

January 3, 2012
5:30PM
April 16, 2012 - 11:13AM

See the I18n class for a list of available filter methods.