{"id":18878683,"url":"https://github.com/nowzoo/ngx-date-time-inputs","last_synced_at":"2025-08-31T01:37:16.233Z","repository":{"id":93412587,"uuid":"154885340","full_name":"nowzoo/ngx-date-time-inputs","owner":"nowzoo","description":"Simple date and time inputs for Angular.","archived":false,"fork":false,"pushed_at":"2018-10-26T21:30:18.000Z","size":1087,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-13T04:07:49.463Z","etag":null,"topics":["angular","date","input","moment","time"],"latest_commit_sha":null,"homepage":"https://nowzoo.github.io/ngx-date-time-inputs/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nowzoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-26T19:36:38.000Z","updated_at":"2018-10-26T21:30:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"5086515b-5694-44b1-9271-f6a9847c8198","html_url":"https://github.com/nowzoo/ngx-date-time-inputs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/nowzoo/ngx-date-time-inputs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowzoo%2Fngx-date-time-inputs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowzoo%2Fngx-date-time-inputs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowzoo%2Fngx-date-time-inputs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowzoo%2Fngx-date-time-inputs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowzoo","download_url":"https://codeload.github.com/nowzoo/ngx-date-time-inputs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowzoo%2Fngx-date-time-inputs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272930000,"owners_count":25017057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","date","input","moment","time"],"created_at":"2024-11-08T06:29:06.427Z","updated_at":"2025-08-31T01:37:16.198Z","avatar_url":"https://github.com/nowzoo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-date-time-inputs\n\nSimple date and time inputs. No calendars or fancy controls or polyfills. They just guess the\ndate or time the user means. Forgiving and (more or less) locale-aware.\n\n[Demo Site](https://nowzoo.github.io/ngx-date-time-inputs/)\n\n## Installation\n\nInstall the library and its dependancies (moment and lodash-es).\n\n```bash\nnpm i --save @nowzoo/ngx-date-time-inputs moment lodash-es\n```\n\n## Usage\n\nImport the library module...\n\n```typescript\nimport { NgxDateTimeInputsModule } from '@nowzoo/ngx-date-time-inputs';\n@NgModule({\n  imports: [\n    NgxDateTimeInputsModule\n  ]\n})\nexport class MyModule { }\n```\n\nThe `ngx-date-input` and `ngx-time-input` components are\nnow available for you to use:\n\n```html\n\u003cngx-date-input\n  [inputId]=\"formId + 'date'\"\n  inputClass=\"form-control\"\n  [(ngModel)]=\"date\"\u003e\u003c/ngx-date-input\u003e\n\u003cngx-time-input\n  [inputId]=\"formId + 'time'\"\n  inputClass=\"form-control\"\n  [(ngModel)]=\"time\"\u003e\u003c/ngx-time-input\u003e\n```\n\n## Date Input API\nThe component implements `ControlValueAccessor`. The model is a string in the format `YYYY-MM-DD`.\n\nSelector: `ngx-date-input`\n\nInputs\n- `displayFormat: string` The format for displaying the date in the input. See Moment's [formatting docs](https://momentjs.com/docs/#/displaying/format/).\n  Default: `'LL'` (e.g., September 4, 1986).\n- `inputPlaceholder: string` A string to be used as the input's placeholder attribute. Default: `'Enter a date'`\n- `inputId: string` A string to be used as the input's id.\n- `inputClass: string` A string to be used as the input's class. Pass any error classes here.\n\n## Time Input API\nThe component implements `ControlValueAccessor`. The model is a string in the format `HH:mm` (24-hour time).\n\nSelector: `ngx-time-input`\n\nInputs\n\n- `displayFormat: string` The format for displaying the date in the input. See Moment's [formatting docs](https://momentjs.com/docs/#/displaying/format/). Default: `'LT'` (time in the locale).\n- `inputPlaceholder: string` A string to be used as the input's placeholder attribute. Default: `'Enter a time'`\n- `inputId: string` A string to be used as the input's id.\n- `inputClass: string` A string to be used as the input's class. Pass any error classes here.\n\n\n\n## Development\n\nContributions are welcome.\n\n```bash\ngit clone git@github.com:nowzoo/ngx-date-time-inputs.git\ncd ngx-date-time-inputs\nnpm i\n```\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli).\n\nThe library files are located in `projects/ngx-date-time-inputs`\n\n\nRun `ng serve` for a dev server with a demo app. Navigate to `http://localhost:4200/`.\n\n\n### Building the library\n\nRun `ng build ngx-date-time-inputs` to build the library after you change it. The dev server does not rebuild the library automatically.\n\n### Running unit tests\n\nRun `ng test ngx-date-time-inputs` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\nThe library is also set up to run tests using Wallaby using the config at `projects/ngx-date-time-inputs/wallaby.js`\n\n## License\n\n[MIT](https://github.com/nowzoo/ngx-date-time-inputs/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowzoo%2Fngx-date-time-inputs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowzoo%2Fngx-date-time-inputs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowzoo%2Fngx-date-time-inputs/lists"}