{"id":18440568,"url":"https://github.com/fooloomanzoo/datetime-input","last_synced_at":"2025-04-14T15:28:10.468Z","repository":{"id":57741261,"uuid":"118089884","full_name":"fooloomanzoo/datetime-input","owner":"fooloomanzoo","description":"an input for date and time","archived":false,"fork":false,"pushed_at":"2020-09-06T21:12:59.000Z","size":784,"stargazers_count":8,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T13:18:27.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/fooloomanzoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-19T07:03:12.000Z","updated_at":"2024-11-16T08:02:48.000Z","dependencies_parsed_at":"2022-09-09T03:22:46.095Z","dependency_job_id":null,"html_url":"https://github.com/fooloomanzoo/datetime-input","commit_stats":null,"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooloomanzoo%2Fdatetime-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooloomanzoo%2Fdatetime-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooloomanzoo%2Fdatetime-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooloomanzoo%2Fdatetime-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fooloomanzoo","download_url":"https://codeload.github.com/fooloomanzoo/datetime-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248905852,"owners_count":21181065,"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":[],"created_at":"2024-11-06T06:31:12.414Z","updated_at":"2025-04-14T15:28:10.443Z","avatar_url":"https://github.com/fooloomanzoo.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on NPM](https://img.shields.io/npm/v/@fooloomanzoo/datetime-input.svg)](https://www.npmjs.com/package/@fooloomanzoo/datetime-input)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/@fooloomanzoo/datetime-input)\n\n_[API \u0026 Demo](https://fooloomanzoo.github.io/datetime-input)_\n\n## \\\u003cdatetime-input\\\u003e\n\nAn input for date and time.\n\nIf you are looking for a picker for date and time, please have a look at [datetime-picker](https://github.com/fooloomanzoo/datetime-picker).\n\n### Example\n```html\n  \u003cinput type=\"checkbox\" checked=\"{{withTimezone::change}}\"\u003ewith timezone\u003cbr\u003e\u003cbr\u003e\n  \u003cdatetime-input value=\"{{value}}\" default=\"2022-06-02T11:12:13\" datetime=\"{{datetime}}\" date=\"{{date}}\" time=\"{{time}}\" with-timezone=\"{{withTimezone}}\" timezone=\"{{timezone}}\"\u003e\u003c/datetime-input\u003e\u003cbr\u003e\u003cbr\u003e\n  \u003cdate-input date=\"{{date}}\" timezone=\"[[timezone]]\"\u003e\u003c/date-input\u003e\u003cbr\u003e\u003cbr\u003e\n  \u003ctime-input time=\"{{time}}\" timezone=\"[[timezone]]\" with-timezone=\"{{withTimezone}}\"\u003e\u003c/time-input\u003e\n  \u003cp\u003e\n    \u003ccode\u003edatetime:\u003c/code\u003e\u0026#32;\u003cb\u003e[[datetime]]\u003c/b\u003e\u003cbr\u003e\n    \u003ccode\u003edate:\u003c/code\u003e\u0026#32;\u003cb\u003e[[date]]\u003c/b\u003e\u003cbr\u003e\n    \u003ccode\u003etime:\u003c/code\u003e\u0026#32;\u003cb\u003e[[time]]\u003c/b\u003e\u003cbr\u003e\n    \u003ccode\u003evalue:\u003c/code\u003e\u0026#32;\u003cb\u003e[[value]]\u003c/b\u003e\n  \u003c/p\u003e\n```\n\n#### Use locale date formats\nThe properties `date`, `time`, `datetime` are always in **iso8061** but the visualization will be localized. By default your locale date format from `window.navigator.language` will be used, but you can select another *locale*:\n```html\n\u003cp\u003e\n  locale:\n  \u003cselect value=\"{{locale::change}}\"\u003e\n    \u003coption value=\"\"\u003e\u003c/option\u003e\n    \u003coption value=\"en\"\u003eenglish\u003c/option\u003e\n    \u003coption value=\"fr\"\u003efrançais\u003c/option\u003e\n    \u003coption value=\"de\"\u003edeutsch\u003c/option\u003e\n    \u003coption value=\"es\"\u003eespañol\u003c/option\u003e\n    \u003coption value=\"it\"\u003eitaliano\u003c/option\u003e\n    \u003coption value=\"ru\"\u003eрусский\u003c/option\u003e\n    \u003coption value=\"ja\"\u003e日本語\u003c/option\u003e\n    \u003coption value=\"zh\"\u003e中文\u003c/option\u003e\n  \u003c/select\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003cinput type=\"checkbox\" checked=\"{{hour12::change}}\"\u003ehour12 format\n\u003c/p\u003e\n\n\u003cp\u003e\n  \u003cdatetime-input locale=\"{{locale}}\" datetime=\"{{datetime}}\" hour12-format=\"[[hour12]]\"\u003e\u003c/datetime-input\u003e\n\u003c/p\u003e\n\n\u003cp\u003edatetime: [[datetime]]\u003c/p\u003e\n```\n\n### Styling\nHave a look at [input-picker-pattern#input-shared-style](https://github.com/fooloomanzoo/input-picker-pattern#input-shared-style) to see how to style the element.\n\n### Installation\n```\nnpm i @fooloomanzoo/datetime-input\n```\n\n### License\n[MIT](https://github.com/fooloomanzoo/datetime-input/blob/master/LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooloomanzoo%2Fdatetime-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffooloomanzoo%2Fdatetime-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooloomanzoo%2Fdatetime-input/lists"}