{"id":14973545,"url":"https://github.com/raphaelm-sudo/ngx-simple-datepicker","last_synced_at":"2026-03-01T07:33:42.672Z","repository":{"id":43430999,"uuid":"237700666","full_name":"raphaelM-sudo/ngx-simple-datepicker","owner":"raphaelM-sudo","description":"Simple and lightweight, yet customizable date picker for Angular","archived":false,"fork":false,"pushed_at":"2023-05-07T22:08:39.000Z","size":1731,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T12:47:02.224Z","etag":null,"topics":["angular","date","datepicker","ngx","picker"],"latest_commit_sha":null,"homepage":"","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/raphaelM-sudo.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":"2020-02-02T01:05:38.000Z","updated_at":"2021-02-13T09:33:41.000Z","dependencies_parsed_at":"2024-09-23T13:41:17.235Z","dependency_job_id":null,"html_url":"https://github.com/raphaelM-sudo/ngx-simple-datepicker","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":"0.17391304347826086","last_synced_commit":"ad78c8165a882d9a502ee29a77b89570fddbb43b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelM-sudo%2Fngx-simple-datepicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelM-sudo%2Fngx-simple-datepicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelM-sudo%2Fngx-simple-datepicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelM-sudo%2Fngx-simple-datepicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaelM-sudo","download_url":"https://codeload.github.com/raphaelM-sudo/ngx-simple-datepicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240689240,"owners_count":19841896,"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","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","datepicker","ngx","picker"],"created_at":"2024-09-24T13:48:56.142Z","updated_at":"2026-03-01T07:33:42.633Z","avatar_url":"https://github.com/raphaelM-sudo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ngx Simple Datepicker\n\nSimple and lightweight, yet customizable date picker for Angular\n\n[Demo](https://ngx-simple-datepicker.netlify.com/)\n\nThis is a simple datepicker component for Angular, fully supporting template driven forms and form validation.\nIt uses [@nutrify/ngx-simple-select](https://www.npmjs.com/package/@nutrify/ngx-simple-select/) as the select control.\n\n## Installation\n\nNote: Ngx Simple Datepicker requires Angular 9.\n\n```sh\nnpm install @nutrify/ngx-simple-datepicker --save\n```\n\nFor styling import @nutrify/ngx-simple-select/scss/styles.scss or @nutrify/ngx-simple-select/css/styles.css\n\n## Usage\n\n**app.module.ts:**\n\n```typescript\nimport { SimpleDatepickerModule } from 'projects/simple-datepicker/src/public-api';\n\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\n\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    SimpleDatepickerModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n**component.ts:**\n\n```typescript\n// ...\n\nexport class Component {\n  date: Date = null;\n}\n```\n\n**component.html:**\n\n```html\n\u003c!-- ... --\u003e\n\n\u003csimple-datepicker min=\"1910-01-01\" max=\"2020-01-01\" [(ngModel)]=\"date\" required\u003e\u003c/simple-datepicker\u003e\n\n\u003c!-- ... --\u003e\n```\n\nCheck out the [source code](https://github.com/raphaelM-sudo/ngx-simple-datepicker/tree/master/src/app) for an example.\n\n#### Datepicker\n\n##### Inputs\n\n| Property         | Default | Type                                     | Description                                              |\n| ---------------- | ------- | ---------------------------------------- | -------------------------------------------------------- |\n| min              |         | `Date \\| string`                         | Optional min date value *                                |\n| max              |         | `Date \\| string`                         | Optional max date value *                                |\n| dayPlaceholder   |         | `string`                                 | Optional placeholder for the day select control          |\n| monthPlaceholder |         | `string`                                 | Optional placeholder for the month select control        |\n| yearPlaceholder  |         | `string`                                 | Optional placeholder for the year select control         |\n| months           |         | `[string, ...string[]] \u0026 { length: 12 }` | Optional array of month names for multi language support |\n\n\u003csub\u003e*) If no value is entered the date wont be validated by default, but the select dropdown for the year will show a range of (-115) - (-16) from the current year.\u003c/sub\u003e\n\n## Styling\n\nYou can use SCSS or CSS from @nutrify/ngx-simple-select for styling.\n\nJust import the stylesheet and apply changes to it.\n\n### CSS / SASS\n\n```scss\n@import '~@nutrify/ngx-simple-select/scss/styles';\n```\n\n### Angular\n\n**angular-cli.json:**\n\n```json\n\"styles\": [\n  \"styles.css\",\n\n  \"../node_modules/@nutrify/ngx-simple-select/css/styles.css\"\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelm-sudo%2Fngx-simple-datepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelm-sudo%2Fngx-simple-datepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelm-sudo%2Fngx-simple-datepicker/lists"}