intwebg/silverstripe-datetimepicker

Add a calendar picker to DatetimeField

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:JavaScript

Type:silverstripe-vendormodule

dev-master 2019-08-16 12:43 UTC

README

Add a calendar date and time picker to DatetimeField.

Add a calendar date picker to DateField.

Add a time picker to TimeField.

Installation

composer require intwebg/silverstripe-datetimepicker

Silverstripe 4.4.x

Basic usage to show the picker in the CMS

DateField::create('Date')->setHTML5(false)->setDateFormat('yyyy-MM-dd')
TimeField::create('Time')->setHTML5(false)->setTimeFormat('HH:mm')
DatetimeField::create('DateTime')->setHTML5(false)->setDatetimeFormat('yyyy-MM-dd HH:mm:ss')

ToDos

  • Release more customizable option

Datetime picker jQuery library came from https://github.com/xdan/datetimepicker