There is no license information available for the latest version (dev-wip/i18n-overwrites) of this package.

Localized Date, Time & Date-Time fields for SilverStripe

dev-wip/i18n-overwrites 2015-09-01 13:24 UTC

This package is not auto-updated.

Last update: 2021-04-09 02:17:19 UTC


Translatable fieldtypes for:

  • Date
  • Time
  • DateTime

Maintainer Contact


  • SilverStripe 3.0


Install via composer composer require et-innovations/silverstripe-localdatetime or extract the contents of this repository into the root-folder of your project.

Usage Overview

Simply create the wished field in the array $db:

class MyDataObject extends DataObject {

	public static $db = array(
		'SomeDateField' => "LocalDate",
		'SomeTimeField' => "LocalTime",
		'SomeDateTimeField' => "LocalDatetime",


To get translated value in GridField, you need to declare a function with the same name as the field and return the value as wished:

class MyDataObject extends DataObject {
	public function SomeDateField() {
			return DBField::create_field('LocalDate', $this->{__FUNCTION__})->Nice();