{"id":15602131,"url":"https://github.com/shiv19/nativescript-material-datetimepicker","last_synced_at":"2025-05-07T18:24:05.296Z","repository":{"id":57308615,"uuid":"106932173","full_name":"shiv19/nativescript-material-datetimepicker","owner":"shiv19","description":"Material Design Datetimepicker for Nativescript ","archived":false,"fork":false,"pushed_at":"2017-10-24T22:10:10.000Z","size":2048,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T12:58:04.743Z","etag":null,"topics":["datetimepicker","material","nativescript","picker"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shiv19.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}},"created_at":"2017-10-14T13:57:25.000Z","updated_at":"2024-05-30T16:13:34.000Z","dependencies_parsed_at":"2022-08-28T23:11:50.234Z","dependency_job_id":null,"html_url":"https://github.com/shiv19/nativescript-material-datetimepicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiv19%2Fnativescript-material-datetimepicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiv19%2Fnativescript-material-datetimepicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiv19%2Fnativescript-material-datetimepicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiv19%2Fnativescript-material-datetimepicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiv19","download_url":"https://codeload.github.com/shiv19/nativescript-material-datetimepicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252932416,"owners_count":21827298,"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":["datetimepicker","material","nativescript","picker"],"created_at":"2024-10-03T02:38:07.540Z","updated_at":"2025-05-07T18:24:05.273Z","avatar_url":"https://github.com/shiv19.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nativescript-material-datetimepicker [![Build Status](https://travis-ci.org/shiv19/nativescript-material-datetimepicker.svg?branch=master)](https://travis-ci.org/shiv19/nativescript-material-datetimepicker) [![npm](https://img.shields.io/npm/dt/express.svg)](https://www.npmjs.com/package/nativescript-material-datetimepicker) [![npm](https://img.shields.io/npm/v/nativescript-material-datetimepicker.svg)](https://www.npmjs.com/package/nativescript-material-datetimepicker)\n\n[![Twitter URL](https://img.shields.io/badge/twitter-%40MultiShiv19-blue.svg)](https://twitter.com/MultiShiv19)\n\n\n[![NPM](https://nodei.co/npm/nativescript-material-datetimepicker.png)](https://nodei.co/npm/nativescript-material-datetimepicker/)\n\nThis plugin is a wrapper around `android.app.DatePickerDialog` for Android.\n\n\n---\n\n## DEPRECATED - 25th Oct 2017 \n\nAll functionality of this plugin, and more (including iOS Support), is now \navailable at [nativescript-modal-datetimepicker](https://www.npmjs.com/package/nativescript-modal-datetimepicker) \u003c3\n\nUse this plugin, only if you don't need iOS support, and other additional features.\nBe warned, development of this plugin has been discontinued.\n\n- Shiv19\n\n---\n\n\n## Screenshots\n\n### Date Picker\n\u003cimg src=\"https://github.com/shiv19/nativescript-material-datetimepicker/blob/master/assets/datepicker.jpeg?raw=true\" height=\"320\" \u003e \n\n### Time Picker\n\u003cimg src=\"https://github.com/shiv19/nativescript-material-datetimepicker/blob/master/assets/timepicker.jpeg?raw=true\" height=\"320\" \u003e \n\n## Installation\n\n```javascript\ntns plugin add nativescript-material-datetimepicker\n```\n\n## Usage \n\nNativeScript Core\n\n```js\n\nconst MDTPicker = require(\"nativescript-material-datetimepicker\").MaterialDatetimepicker;\n\nconst mDtpicker = new MDTPicker();\n\n// Pick Date\nexports.selectDate = function() {\n    mDtpicker.pickDate()\n        .then((result) =\u003e {\n            console.log(\"Date is: \" + result.day + \"-\" + result.month + \"-\" + result.year);\n        })\n        .catch((error) =\u003e {\n            console.log(\"Error: \" + error);\n        });\n};\n\n// Pick Time\nexports.selectTime = function() {\n    mDtpicker.pickTime()\n        .then((result) =\u003e {\n            console.log(\"Time is: \" + result.hour + \":\" + result.minute);\n        })\n        .catch((error) =\u003e {\n            console.log(\"Error: \" + error);\n        });\n};\n\n```\n\n## API\n\n`pickDate(): Promise\u003c{}\u003e;`\n\nReturns a promise that resolves to date object\n```js\ndate: {\n    day: number,\n    month: number,\n    year: number\n}\n```\n\n`pickTime(is24HourView?): Promise\u003c{}\u003e;`\n\nReturns a promise that resolves to time object\n```js\ntime: {\n    hour: number,\n    minute: number\n}\n```\nPassing `true` to this API, shows a 24hr View timepicker.\n    \n## License\n\nApache License Version 2.0, January 2004\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiv19%2Fnativescript-material-datetimepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiv19%2Fnativescript-material-datetimepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiv19%2Fnativescript-material-datetimepicker/lists"}