Angularjs Examples

AJS Examples


AngularJS Input Type DateTime

The AngularJS input types are HTML input element control and used togather with ng-model directive. AngularJS input type DateTime can be decorate with various AngularJS arguments like name, name,ng-min,ng-max,required,ng-required and ng-change.

Note: Many modern browsers do not yet support this input type.

AngularJS Input Type DateTime Syntax

AngularJS Input Type DateTime Arguments

Here is a list of AngularJS Input Type DateTime Arguments.

DirectivesDescription
ng-modelAngularJS expression to bind the data.
name (optional)Name of the control input control.
min (optional)The valid date string (yyyy-MM-dd). This is used to set minimum date validation.
max (optional)The valid date string (yyyy-MM-dd). This is used to set maximun date validation.
ng-min (optional)AngularJS expression sets the min validation constraint to the Date .
ng-max (optional)AngularJS expression sets the max validation constraint to the Date .
required (optional)Validate input type date is required.
ng-required (optional)AngularJS expression ngRequired expression evaluates to true.
ng-change (optional)AngularJS expression to be executed when input value changes.

AngularJS Input Type DateTime Example

Above example will produce following output

See Live Example