{"id":43373260,"url":"https://github.com/snamoah/react-datetime-range-picker","last_synced_at":"2026-02-02T06:01:52.569Z","repository":{"id":30299684,"uuid":"124532284","full_name":"snamoah/react-datetime-range-picker","owner":"snamoah","description":"React component for selecting range of dates and times","archived":false,"fork":false,"pushed_at":"2023-03-05T12:17:46.000Z","size":545,"stargazers_count":14,"open_issues_count":12,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-11T05:13:35.825Z","etag":null,"topics":["datetime","datetime-picker","datetimepicker","datetimepicker-component","react","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/snamoah.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-03-09T11:31:18.000Z","updated_at":"2023-09-28T05:23:06.000Z","dependencies_parsed_at":"2024-06-19T19:15:36.484Z","dependency_job_id":null,"html_url":"https://github.com/snamoah/react-datetime-range-picker","commit_stats":{"total_commits":54,"total_committers":8,"mean_commits":6.75,"dds":0.2592592592592593,"last_synced_commit":"1f6f5ce21a43e97336dc6f156fba4df4f0e6425a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/snamoah/react-datetime-range-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snamoah%2Freact-datetime-range-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snamoah%2Freact-datetime-range-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snamoah%2Freact-datetime-range-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snamoah%2Freact-datetime-range-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snamoah","download_url":"https://codeload.github.com/snamoah/react-datetime-range-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snamoah%2Freact-datetime-range-picker/sbom","scorecard":{"id":834240,"data":{"date":"2025-08-11","repo":{"name":"github.com/snamoah/react-datetime-range-picker","commit":"1f6f5ce21a43e97336dc6f156fba4df4f0e6425a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":2,"reason":"Found 5/20 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T18:32:45.013Z","repository_id":30299684,"created_at":"2025-08-23T18:32:45.013Z","updated_at":"2025-08-23T18:32:45.013Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29006668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T04:25:24.522Z","status":"ssl_error","status_checked_at":"2026-02-02T04:24:51.069Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["datetime","datetime-picker","datetimepicker","datetimepicker-component","react","reactjs"],"created_at":"2026-02-02T06:01:51.934Z","updated_at":"2026-02-02T06:01:52.563Z","avatar_url":"https://github.com/snamoah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-datetime-range-picker\n\nThis is a datetime range picker based off of [react-datetime](https://github.com/YouCanBookMe/react-datetime). It is highly customizable and isn't dependent on jQuery (but it does require Moment).\n\n## Installation\n\n```sh\n\u003e npm install --save react-datetime react-datetime-range-picker\n```\n\n\n## Usage\n\n```javascript\nimport DatetimeRangePicker from 'react-datetime-range-picker';\n\n...\n\n  render() {\n    return (\n      \u003cDatetimeRangePicker\n        onChange={this.handler} /\u003e\n    );\n  }\n\n...\n\n```\n\n## Options\n\nAlmost all the props available for [react-datetime](https://github.com/YouCanBookMe/react-datetime) are available for use here too.\n\n| Name | Type | Default | Description |\n|------|------|---------|-------------|\n| startDate | `Date` | `new Date()` | This sets a value for the start date |\n| endDate | `Date` | `new Date()` | This sets a value for the end date |\n| dateFormat | `Boolean` or `String` | `true` | Defines the format for the date. It accepts any `Moment` date format (not in localized format). If `true` the date will be displayed using the defaults for the current `locale`. If `false` the datepicker is disabled and the component can be used as timepicker. |\n| timeFormat | `Boolean` or `String` | `true` | Defines the format for the time. It accepts any `Moment` time format (not in localized format). If `true` the time will be displayed using the defaults for the current `locale`. If `false` the timepicker is disabled and the component can be used as datepicker. |\n| utc | `boolean` | `false` | When true, start and end time values will be interpreted as UTC. Otherwise they will default to the user's local timezone. |\n| locale | `String` | `null` | Manually set the locale |\n| input | `Boolean` | `false` | This defines whether or not to allow user to manually edit date via input field. |\n| inline | `Boolean` | `false` | If set to true will render start date and end date with calender without input fields |\n| onBlur | `Function` | `() =\u003e {}` | This callback is triggered when user clicks outside the datetime range picker. The callback receives an object with the selected start and date date as only parameter. |\n| onFocus | `Function` | `() =\u003e {}` | This callback is triggered when user clicks anywhere inside the outermost element of the picker |\n| onChange | `Function` | `() =\u003e {}` | This callback is triggered everytime a user selects a start date or an end date from the picker |\n| viewMode | `String` | `days` | This defines the default view to display when the pickers are shown. (`'years'`, `'months'`, `'days'`, `'time'`). |\n| closeOnTab | `Boolean` | `true` | When `true` and the input is focused, pressing the tab key will close the datepicker. |\n| className | `String` | `''` | CSS class(es) for the outermost markup element. |\n| inputProps | `Object` | `undefined` | Defines additional attributes for the input element of the component. For example: placeholder, disabled, required, name and className (className sets the class attribute for the input element). This applies to both the start and end datetime inputs |\n| closeOnSelect | `Boolean` | `false` | When true, once the day has been selected, the datepicker will be automatically closed. This is useful when using this as a date range picker instead of datetime range picker |\n| isValidEndDate | `Function` | `() =\u003e true` | Define the dates that can be selected in the end date picker. The function receives `(currentDate, selectedDate)` and shall return a `true` or `false` whether the `currentDate` is valid or not. |\n| isValidStartDate | `Function` | `() =\u003e true` | Define the dates that can be selected in the start date picker. The function receives (currentDate, selectedDate) and shall return a `true` or `false` whether the `currentDate` is valid or not. |\n| onEndDateBlur | `Function` | `() =\u003e {}` | Callback is triggered when user clicks outside the end date input. The callback receives the selected `moment` object as only parameter, if the date in the input is valid. If the date in the input is not valid, the callback returned. |\n| onEndDateFocus | `Function` | `() =\u003e {}` | Callback trigger for when the user opens the end date datepicker. |\n| onEndDateChange | `Function` | `() =\u003e {}` | This callback is triggered everytime the end date changes. It receives the selected `date` as the only parameter. |\n| onStartDateBlur | `Function` | `() =\u003e {}` | This callback is trigger when user clicks outside of the start date input. The callback receives the selected start date as the a parameter |\n| onStartDateFocus | `Function` | `() =\u003e {}` | Callback trigger for when the user opens the end date datepicker. |\n| onStartDateChange | `Function` | `() =\u003e {}` | Callback trigger for when start date changes. This callback receives selected `moment` object as a parameter. |\n| pickerClassName | `String` | `''` | CSS class to attach to outer `div` that wraps the individual pickers. This class is applied to both the start and end pickers. This is particular useful if you want to add `col-*` |\n| startTimeConstraints | `Object` | `null` | Add some constraints to the start timepicker. It accepts an object with the format `{ hours: { min: 9, max: 15, step: 2 }}`, this example means the hours can't be lower than `9` and higher than `15`, and it will change adding or subtracting 2 hours everytime the buttons are clicked. The constraints can be added to the `hours`, `minutes`, `seconds` and `milliseconds`. |\n| endTimeConstraints | `Object` | `null` | Add some constraints to the end timepicker. It accepts an object with the format `{ hours: { min: 9, max: 15, step: 2 }}`, this example means the hours can't be lower than `9` and higher than `15`, and it will change adding or subtracting 2 hours everytime the buttons are clicked. The constraints can be added to the `hours`, `minutes`, `seconds` and `milliseconds`. |\n\n**NB:** You can read more about customization of the individual datepickers [here](https://github.com/YouCanBookMe/react-datetime#customize-the-appearance)\n\n\n\n## Maintainers\n\nSamuel Amoah ([snamoah](https://github.com/snamoah))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnamoah%2Freact-datetime-range-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnamoah%2Freact-datetime-range-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnamoah%2Freact-datetime-range-picker/lists"}