https://github.com/forms-angular/fng-ui-date
jQuery UI datepicker plugin for forms-angular
https://github.com/forms-angular/fng-ui-date
Last synced: 5 months ago
JSON representation
jQuery UI datepicker plugin for forms-angular
- Host: GitHub
- URL: https://github.com/forms-angular/fng-ui-date
- Owner: forms-angular
- License: mit
- Created: 2014-06-08T17:39:21.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2025-04-23T19:21:31.000Z (9 months ago)
- Last Synced: 2025-06-23T16:15:20.584Z (7 months ago)
- Language: JavaScript
- Size: 99.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# fng-ui-date
Plugin for forms-angular that adds jQuery UI date picker.
## Usage
npm install fng-ui-date
To get all the dependencies at the top level of your node_modules run
npm dedupe
Add the following lines to your index.html (or equivalent) file
Date fields in models will have the date picker added.
## Configuration
Configure as part of your Angular app configuration as follows:
```
myApp.config(['uiDateConfig', function(uiDateConfig) {
angular.extend(uiDateConfig, {
dateFormat: 'dd/mm/yy', // UK date format
firstDay: 1 // Monday week start
});
}]);
```
For detailed options see the documentation at http://jqueryui.com/datepicker/
You can specify the timezone (useful to specify UTC for dates of birth and other 'floating' dates) using the schema form.add property:
```
dateOfBirth: {type: Date, form: {add: ' ng-model-options="{timezone:\'UTC\'}" '}}
```
(see the dateOfBirth property in [this](https://www.forms-angular.org/models/b_enhanced_schema.js) schema for an example)