{"_id":"@covve/cordova-plugin-datetimepicker","_rev":"17-45d450e823a4340c29143e9049e5b54f","name":"@covve/cordova-plugin-datetimepicker","dist-tags":{"latest":"1.1.3"},"versions":{"1.1.2":{"name":"@covve/cordova-plugin-datetimepicker","version":"1.1.2","keywords":["ecosystem:cordova","cordova-android","cordova-ios","cordova","datetime"],"author":{"name":"skwasjer"},"license":"MIT","_id":"@covve/cordova-plugin-datetimepicker@1.1.2","maintainers":[{"name":"anagstef","email":"anagstef@gmail.com"},{"name":"covveadmin","email":"admin@covve.com"},{"name":"jasonasmk","email":"kaiseroskilo@gmail.com"},{"name":"mxa055","email":"m.asimakopoulos@gmail.com"},{"name":"vnovakovits","email":"vnovakovits@gmail.com"},{"name":"zafeirism","email":"zafeiris.m@gmail.com"}],"contributors":[{"name":"turshija"},{"name":"emanfu"},{"name":"masimplo"}],"homepage":"https://github.com/Covve/skwas-cordova-plugin-datetimepicker#readme","bugs":{"url":"https://github.com/Covve/skwas-cordova-plugin-datetimepicker/issues"},"dist":{"shasum":"8794afa91c0facdcc8d1a52e85751796f08db73c","tarball":"https://registry.npmjs.org/@covve/cordova-plugin-datetimepicker/-/cordova-plugin-datetimepicker-1.1.2.tgz","fileCount":20,"integrity":"sha512-ftr6KFkkHRiD65j2eU0uUTu4f7/usrAuz+XCUHDrLTo26nlY4n4RAvg6YLa74fP2vEN5RM1X12p3cYGbeKI4bQ==","signatures":[{"sig":"MEYCIQDN8dpo9h8+TFOs6p2xVvzir14z+2IWj3xGqXJWoKNVvgIhAL6KAs04LiilVOxYqhtQL2mL7AceiRq9gK681y+kQKzL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCAY8CRA9TVsSAnZWagAADHoQAIOp98p+F4+0u6X5XdxB\nQEmAaD3EiUe0pC+KRwmmF842Qc8soRaqZbftNP34zwJcurT/ZuakKwA+60tl\nSti5KVfhK30krFD6MFf+m1PVgBxgijJ6QlFa2UdGZjbLix629HrxJxPe8DZ9\nTZTZ02YifWOK9++nB/YueXyxAZUKRgUioH7OP4VXIku/gDd9PZqne2gm4LGk\nNtUMmcw5WQs0z1n9OlQIZyInom3ctmq7lmdgynwTfVlfnPboLiExrzZOV8Zr\nsS5cXiK45T0tiEnEHSc7jn08aXxmC9KAFNdGpYD1CHWkyDzeCk/TB7qB7aY+\nMUWOp4aUGOaLYKpmxautMWXoQMYSqDFgCwaoTB08fAKSJxaDHTahInJwxz7L\nTeq0thb/WNnl0fVOjDTVKeBgCYfJcDj6xaEDXPmv9beveS+ofph21A08GW4n\n7o4RTA0HxLapkEg48Hn88dJUsmTgvs83nJt0G7uWJOf6KSitp8lLFUi1nkPT\nTUPBvK63OBRlbkEA6yPcROQDaiMTBc1VhRxjf3vccCFwPxCX8WZaLFT6sLxn\npSUBP0vhb89PGr5JrujvQL6Gkd74vXzhAEIq666qzuGkda5bZYvA5hzgi7Qq\nO36oBGxQ4jGnTmKQH41Qga60fx3Ev04sOmp/lx9d6Oq4Q34LAkDpck5BoBFG\njoGA\r\n=1olY\r\n-----END PGP SIGNATURE-----\r\n"},"types":"./types/index.d.ts","gitHead":"601e455daea2e327198f764b8bff5a005a03c2ea","_npmUser":{"name":"mxa055","email":"m.asimakopoulos@gmail.com"},"platforms":["android","ios"],"repository":{"url":"git+https://github.com/Covve/skwas-cordova-plugin-datetimepicker.git","type":"git"},"_npmVersion":"6.0.1","description":"Cordova DateTime picker plugin","directories":{},"_nodeVersion":"8.11.1","cordova_name":"DateTime picker","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cordova-plugin-datetimepicker_1.1.2_1527252540066_0.5988184110334789","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"@covve/cordova-plugin-datetimepicker","version":"1.1.3","keywords":["ecosystem:cordova","cordova-android","cordova-ios","cordova","datetime"],"author":{"name":"skwasjer"},"license":"MIT","_id":"@covve/cordova-plugin-datetimepicker@1.1.3","maintainers":[{"name":"anagstef","email":"anagstef@gmail.com"},{"name":"covveadmin","email":"admin@covve.com"},{"name":"jasonasmk","email":"kaiseroskilo@gmail.com"},{"name":"mxa055","email":"m.asimakopoulos@gmail.com"},{"name":"vnovakovits","email":"vnovakovits@gmail.com"},{"name":"zafeirism","email":"zafeiris.m@gmail.com"}],"contributors":[{"name":"turshija"},{"name":"emanfu"},{"name":"masimplo"}],"homepage":"https://github.com/Covve/skwas-cordova-plugin-datetimepicker#readme","bugs":{"url":"https://github.com/Covve/skwas-cordova-plugin-datetimepicker/issues"},"dist":{"shasum":"6d937c6555b7f7c754fabf4528a96a1930d91c35","tarball":"https://registry.npmjs.org/@covve/cordova-plugin-datetimepicker/-/cordova-plugin-datetimepicker-1.1.3.tgz","fileCount":20,"integrity":"sha512-pjCPoQELC9IELOJQJuSC9VaF7LVlROJMHtKC+mIo7w6iZByUwKOoaOjbbjXhW0hmM/auVW2GoPIwHlMqs1ZIAg==","signatures":[{"sig":"MEQCIA9cwjuMxFrdTPOYiIrdatx6DeTWR/Omu75VXABb0cc0AiBwp41yaNK0BjWF9JoPAY3Z3CPNtRG691iOOz6uLkBiMA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCDhlCRA9TVsSAnZWagAA/+AP/3pymo77jJKQlGurMJDk\n38S0JPXWQUIKO7oxLsP3/pS4Kf4AfS+RN6iVqDQyqK5d9HiYxCGPrQb7j27T\nGJ0vOC09ajdz5UB3CCST8RRZDKiTgXoVieuXS7ziuBUXaf2bK5WhIJZf0+jN\nxp7gP1P90puRsyoxT0QwClFK7w6QULXMTmsjRVLtFlbsL0r4LpMUXATTvdq/\nWcobPNuz8YYSfdgxrMAAc+/LoulNXealhViXr1IS+dUCQkI3KiYfvGggLkMC\nKHwTqRABKUlhocVUjQ+59ysKpdhyZ+fEaq/kW9xC0M7srg37PNjOsM2pzrox\nkuEIqqoHnueWx1b3gmKnO1p6DDsz6Z7gcVJENViLpZVTHckLER7suk+0J64j\nZnmCs/oK4l76FLFOc7EAuNupxYBKijmjRARZrORt3g2F8raa9R96Z956k349\nAIGQE3O8dyeQUwG/ypCvA600GN2pmIL2xNMRtf8ORm3dyi1tzOlMxVFduZVr\n8oJMYTEACO9ajpd8jdgwSDhkt6V/B+YF5BdvbaAP3mrRYWLLBkN7nec/oWJO\nkKaJt7zalPfgxMBkHsqiUkS+fYnCH9chpdcWBuRSgiUG+nJcqe4XEAELvGqd\nPr9GdbPZ+Pwu0hDRZMTIRQrRmQbJjdjp3QzAtWlUYu6hw0gU3bh8acxl21ME\nyNBt\r\n=sgUJ\r\n-----END PGP SIGNATURE-----\r\n"},"types":"./types/index.d.ts","gitHead":"26c7d3878d7e63e551612f09b03d46469260247f","_npmUser":{"name":"mxa055","email":"m.asimakopoulos@gmail.com"},"platforms":["android","ios"],"repository":{"url":"git+https://github.com/Covve/skwas-cordova-plugin-datetimepicker.git","type":"git"},"_npmVersion":"6.0.1","description":"Cordova DateTime picker plugin","directories":{},"_nodeVersion":"8.11.1","cordova_name":"DateTime picker","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cordova-plugin-datetimepicker_1.1.3_1527265380454_0.3660198088471054","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-05-25T12:08:04.617Z","modified":"2025-06-19T09:29:32.582Z","1.1.0":"2018-05-25T12:08:04.712Z","1.1.1":"2018-05-25T12:14:07.122Z","1.1.2":"2018-05-25T12:49:00.136Z","1.1.3":"2018-05-25T16:23:00.546Z"},"bugs":{"url":"https://github.com/Covve/skwas-cordova-plugin-datetimepicker/issues"},"author":{"name":"skwasjer"},"license":"MIT","homepage":"https://github.com/Covve/skwas-cordova-plugin-datetimepicker#readme","keywords":["ecosystem:cordova","cordova-android","cordova-ios","cordova","datetime"],"repository":{"url":"git+https://github.com/Covve/skwas-cordova-plugin-datetimepicker.git","type":"git"},"description":"Cordova DateTime picker plugin","contributors":[{"name":"turshija"},{"name":"emanfu"},{"name":"masimplo"}],"maintainers":[{"email":"m.asimakopoulos@gmail.com","name":"mxa055"},{"email":"admin@covve.com","name":"covveadmin"},{"email":"v.christodoulou@covve.com","name":"v.christodoulou"},{"email":"g.kokkinis@covve.com","name":"giorgos_kokkinis"},{"email":"n.chrysis@gmail.com","name":"nchrysis"},{"email":"gkokkinis@protonmail.com","name":"gkokkinis99"},{"email":"g.markopoulou@covve.com","name":"g.markopoulou"}],"readme":"[![npm version](https://badge.fury.io/js/skwas-cordova-plugin-datetimepicker.svg)](https://badge.fury.io/js/skwas-cordova-plugin-datetimepicker)\n\n# @covve/cordova-plugin-datetimepicker\nCordova Plugin for showing a native date, time or datetime picker.\n\n## Installation ##\n\n`cordova plugin add @covve/cordova-plugin-datetimepicker`\n\nor for latest\n\n`cordova plugin add https://github.com/covve/skwas-cordova-plugin-datetimepicker.git`\n\n## Supported platforms ##\n\nAndroid 4 and higher\niOS 8 and higher (tested with Xcode 7.2.3 and Xcode 8)\n\n## Methods ##\n\n### show ###\n\n`show(options)`\nShow the plugin with specified options.\n\n`show(options, successCallback, errorCallback)`\nShow the plugin with specified options and callbacks.\n\nThis was the original way to call the plugin, and is kept for compatibility.\n> Note: The `successCallback` and `errorCallback` respectively will be ignored if the `success` or `error` callback is provided on the `options` argument.\n\n#### Options ####\n\n| Name                | Type                | Default        | Android                    | iOS                        | |\n|---------------------|---------------------|----------------|:--------------------------:|:--------------------------:|--------------------------|\n| mode                | String              | \"date\"         | `date`, `time`, `datetime` | `date`, `time`, `datetime` | The display mode |\n| date                | Date                |                | required                   | required                   | The initial date to display |\n| allowOldDates       | boolean             | true           | -                          | supported                  | Allow older dates to be selected |\n| allowFutureDates    | boolean             | true           | -                          | supported                  | Allow future dates to be selected |\n| minDate\t\t\t\t\t    | Date\t              |  \t\t           | supported                  | supported                  | Set the minimum date that can be selected |\n| maxDate\t\t\t\t\t    | Date                | \t\t           | supported                  | supported                  | Set the maximum date that can be selected |\n| minuteInterval      | int                 | 1              | >= Honeycomb               | supported                  | For minute spinner the number of minutes per step |\n| locale              | String              | \"EN\"           | -                          | supported                  | The locale to use for text and date/time |\n| okText              | String              | \"Select\"       | supported                  | supported                  | The text to use for the ok button |\n| cancelText          | String              | \"Cancel\"       | supported                  | supported                  | The text to use for the cancel button |\n| success             | Function            | -              | supported                  | supported                  | The success callback |\n| cancel              | Function            | -              | supported                  | supported                  | The cancel callback |\n| error               | Function            | -              | supported                  | supported                  | The error callback |\n| android             | Object              | {}             | optional                   | ignored                    | Android specific options |\n\n#### Android options\n\n| Name                | Type                | Default     | Description               |\n|---------------------|---------------------|-------------|---------------------------|\n| theme               | int                 | [Theme_DeviceDefault_Dialog](https://developer.android.com/reference/android/R.style.html#Theme_DeviceDefault_Dialog)| android.R.style theme |\n| calendar            | boolean             | false       | False shows spinners, however this depend on the theme selected and SDK version. When true, forces a calendar view.|\n| is24HourView        | boolean             | true        | Use a 24 hour clock |\n\n> On Lollipop and upwards the date and time pickers changed to calendar and radial pickers. If you want to use spinners (for example to use `minuteInterval`), choose a theme that shows a date and time picker with spinners, like Theme_DeviceDefault_Light, Theme_Holo_Dialog or the traditional theme (1).\n\n#### Example ####\n\n```js\ndocument.addEventListener(\"deviceready\", onDeviceReady, false);\nfunction onDeviceReady() {\n\n\tvar myDate = new Date(); // From model.\n\n\tcordova.plugins.DateTimePicker.show({\n\t\tmode: \"date\",\n\t\tdate: myDate,\n\t\tallowOldDates: true,\n\t\tallowFutureDates: true,\n\t\tminDate: new Date(),\n\t\tmaxDate: null,\n\t\tminuteInterval: 15,\n\t\tlocale: \"EN\",\n\t\tokText: \"Select\",\n\t\tcancelText: \"Cancel\",\n\t\tandroid: {\n\t\t\ttheme: 16974126, // Theme_DeviceDefault_Dialog\n\t\t\tcalendar: false,\n\t\t\tis24HourView: true\n\t\t},\n\t\tsuccess: function(newDate) {\n\t\t\t// Handle new date.\n\t\t\tconsole.info(newDate);\n\t\t\tmyDate = newDate;\n\t\t},\n\t\tcancel: function() {\n\t\t\tconsole.info(\"Cancelled\");\n\t\t},\n\t\terror: function (err) {\n\t\t\t// Handle error.\n\t\t\tconsole.error(err);\n\t\t}\n\t});\n}\n```\n> Note that not all options have to be set.\n\n## Changelog\n#### 1.1.0 ####\n- Add support for min and max date settings\n- Add type information for Typescript support\n- Rename repo in order to publish latest version to npm\n\n#### 1.0.0 ####\n\n- Android/iOS: add support for cancel-event\n- Moved callback handlers from method parameters to options while keeping backward compatibility\n- Android: add 24 hour clock support\n\n#### 0.9.1 ####\n\n- Android: add support for okText/cancelText\n\n#### 0.9.0 ####\n\n- Android: fixed datetime mode only showing date picker (see #10)\n- Android: added theme support\n- Android: added calendar switch\n\n#### 0.8.0 ####\n\n- Android: fix @NonNull error when building apk\n\n#### 0.7.0 ####\n\n- iOS: use auto layout\n- iOS: remove < iOS 7 support (UIActionSheet)\n- iOS: remove custom modal picker type\n- Android: fix minute spinner for setting minute interval\n\n#### 0.6.0 ####\n\n- Android: support Lollipop radial picker (no support for minute interval however)\n- Android: overall refactor and improvements\n\n#### 0.5.1 ####\n\n- iOS: replace initWithWebView with pluginInitialize (deprecated in cordova-ios-4.0)\n\n#### 0.5.0 ####\n\n- Rename repo to conform to npm/cordova plugin naming convention\n\n### Contributors ###\n\n- [skwasjer](https://github.com/skwasjer)\n- [turshija](https://github.com/turshija)\n- [emanfu](https://github.com/emanfu)\n- [masimplo](https://github.com/masimplo)\n","readmeFilename":"README.md"}