{hero}

min()

Since: DateTime 1.0.0

Set the min date for the DateTime instance.
Please note - this property requires the DateTime extension for DataTables.

Description

This method sets the min date for the DateTime instance. It takes either a Date instance directly or a string representing a date that is then parsed into a date.

Types

function min(date)

Description:

Set the min date for the DateTime instance.

Parameters:
Returns:

Self for chaining.

function min(date)

Description:

Set the min date for the DateTime instance.

Parameters:
Returns:

Self for chaining.

Example

Set the min date for DateTime:

var dt = new DateTime(document.getElementById('example'));
dt.min('2015-12-31');