{hero}

buttons.today

Since: DateTime 1.1.0

Enable button move "today" into view.
Please note - this property requires the DateTime extension for DataTables.

Description

When enabled, this option will cause DateTime to show a button (text set by i18n.today) which the end user can activate to shift the calendar view to show today's date.

Note that the value of the field does not change when activating this button.

Default

  • Value: false

Button will not be shown.

Example

Enable today button:

new DateTime(document.getElementById('test'), {
	buttons: {
		today: true
	}
});

Related

The following options are directly related and may also be useful in your application development.