{"id":13728707,"url":"https://github.com/changhuixu/date-range-picker","last_synced_at":"2025-08-20T09:30:57.242Z","repository":{"id":33151541,"uuid":"126087880","full_name":"changhuixu/date-range-picker","owner":"changhuixu","description":"Angular components for Date Range Picker and Date Picker using ng-bootstrap","archived":false,"fork":false,"pushed_at":"2024-03-18T16:18:28.000Z","size":2513,"stargazers_count":14,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-10T02:55:06.151Z","etag":null,"topics":["angular","boostrap4","bootstrap","date-range","date-range-picker","datepicker","daterange","daterange-picker","daterangepicker","ng-bootstrap","ngbootstrap"],"latest_commit_sha":null,"homepage":"https://changhuixu.github.io/date-range-picker/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/changhuixu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-20T21:59:31.000Z","updated_at":"2024-08-11T14:47:10.000Z","dependencies_parsed_at":"2023-12-01T18:37:41.630Z","dependency_job_id":"33e1fefb-18d3-402f-baac-4deac4af36df","html_url":"https://github.com/changhuixu/date-range-picker","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fdate-range-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fdate-range-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fdate-range-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fdate-range-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/changhuixu","download_url":"https://codeload.github.com/changhuixu/date-range-picker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229911013,"owners_count":18143229,"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","boostrap4","bootstrap","date-range","date-range-picker","datepicker","daterange","daterange-picker","daterangepicker","ng-bootstrap","ngbootstrap"],"created_at":"2024-08-03T02:00:48.632Z","updated_at":"2025-08-20T09:30:57.229Z","avatar_url":"https://github.com/changhuixu.png","language":"TypeScript","funding_links":[],"categories":["UI Components"],"sub_categories":["Form"],"readme":"# DateRangePicker\n\nAn Angular library of Date Range Picker. Dependencies: Angular, ng-bootstrap, Bootstrap \u003e4 (css)\n\nSince **v19.0.0**, this library is only compatible with Angular \u003e=19 and ng-bootstrap \u003e=18.\n\nSince **v7.0.0**, this library is only compatible with Angular \u003e=13 and ng-bootstrap \u003e=12.\n\nSince **v6.0.0**, this library is only compatible with Angular \u003e=13 and ng-bootstrap \u003e=11.\n\nSince **v5.0.0**, this library is only compatible with Angular \u003e=12 and ng-bootstrap \u003e=10.\n\nSince **v4.0.0**, this library is only compatible with Angular \u003e=10 and ng-bootstrap \u003e=7.\n\nSince **v3.0.0**, this library requires @angular/localize, due to updates in Angular 9 and ng-bootstrap 6.\n\n[![Build Status](https://github.com/changhuixu/date-range-picker/actions/workflows/main.yml/badge.svg)](https://github.com/changhuixu/date-range-picker/actions)\n[![npm](https://img.shields.io/npm/v/@uiowa/date-range-picker.svg?style=flat-square)](https://www.npmjs.com/package/@uiowa/date-range-picker)\n\n```bash\nnpm i @uiowa/date-range-picker\n```\n\n## [Demo](https://changhuixu.github.io/date-range-picker/)\n\n![date range picker demo](./date-range-picker-demo.gif)\n\n## Models\n\n- `DateRange`: an object represents a date range, includes start date and end date. e.g.,\n\n```typescript\nconst d1 = new DateRange();\nconst d2 = new DateRange(new Date(), new Date(2018, 9, 10));\nconst d3 = DateRange.nextTwoWeeks();\nconst d4 = DateRange.nextDays(10);\nconst d5 = DateRange.nextMonth();\n```\n\n## Components\n\n- `\u003cdate-picker\u003e\u003c/date-picker\u003e`: a wrapper of ng-bootstrap date picker\n\n- `\u003cdate-range-picker\u003e\u003c/date-range-picker\u003e`: a date range picker based on ng-bootstrap\n\n## Usage\n\n```typescript\nimport { DateRangePickerModule } from '@uiowa/date-range-picker';\n\n@NgModule({\n  declarations: [AppComponent],\n  imports: [\n    ...,\n    DateRangePickerModule,\n    ...\n    ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\n```\n\n```html\n// in your component.html\n\u003cdate-range-picker\n  [(dateRange)]=\"dateRange\"\n  [maxDate]=\"maxDate\"\n\u003e\u003c/date-range-picker\u003e\n\u003cdate-picker [(date)]=\"date\"\u003e\u003c/date-picker\u003e\n```\n\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { DateRange } from '@uiowa/date-range-picker';\n\n@Component({\n  ...\n})\nexport class AppComponent implements OnInit {\n  dateRange = new DateRange();\n  maxDate = new Date();\n  date: Date;\n  ngOnInit(): void {\n    this.maxDate.setDate(this.maxDate.getDate() + 20);\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Fdate-range-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanghuixu%2Fdate-range-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Fdate-range-picker/lists"}