All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.bower_components.angular-date-time-input.demo.index.html Maven / Gradle / Ivy

There is a newer version: 0.66.0.1
Show newest version





 

    
    
    
    Angular Bootstrap - Date Time Picker Demo
    
    
    
    
    
    
    
    
    
    
    
    


You can configure this directive to accept input in any format understood by moment.js, however, when you leave the field it will be displayed in the specified format.

The background of the input box will be red whenever the input is an invalid date.

Input format is 'YYYY/MM/DD' (and ISO 8601, which is always supported).
Input parsing is strict (meaning input must match format exactly).
Display format is YYYY/MM/DD.
Stored as milliseconds: {{ data.date1 }}

Input format is 'YYYY/MM/DD hh:mm A', 'YYYY/MM/DD', or 'MMM DD YYYY' (and ISO 8601, which is always supported).
Input parsing is strict (meaning input must exactly match one of input formats).
Display format is 'YYYY/MM/DD hh:mm A'.
Stored as a date: {{ data.date2 }}

Input format is 'YYYY/MMM/DD hh:mm A' ( note the MMM for month ).
Input parsing is NOT strict (in this case, the moment parser is very, very forgiving - entering only '1' will likely result in a valid date).
Display format is 'YYYY/MMM/DD hh:mm A'.
Stored as: {{ data.date3 }}

Input format is 'M/D/YYYY h:mm A'.
Display format is 'M/D/YYYY h:mm A'.
Stored as: {{ data.dateDropDown }}

Any invalid dates will have a ng-invalid class assigned by Angular





© 2015 - 2024 Weber Informatics LLC | Privacy Policy