SilverShop\ORM\FieldType\I18nDatetime
Provides i18n formatting
Synopsis
class I18nDatetime
extends DBDatetime
{
}
}
Hierarchy
Extends
- SilverStripe\ORM\FieldType\DBDatetime
Methods
public
- Nice() — Returns the datetime in the format given in the lang file 'SilverShop\Generic.DateTimeFormatNice'. Defaults to '%m/%d/%G %I:%M%p'
- Nice24() — Returns the 24h datetime in the format given in the lang file.
- NiceDate() — Returns the date in the format given in the lang file.