{"id":15961227,"url":"https://github.com/qingwei-li/parsedate","last_synced_at":"2025-04-04T12:13:03.063Z","repository":{"id":57319643,"uuid":"98704622","full_name":"QingWei-Li/parsedate","owner":"QingWei-Li","description":"Converts a value to a Date","archived":false,"fork":false,"pushed_at":"2017-07-29T03:14:38.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T02:47:34.479Z","etag":null,"topics":["date","parse","parser","string"],"latest_commit_sha":null,"homepage":null,"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/QingWei-Li.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-07-29T03:08:53.000Z","updated_at":"2017-07-30T01:05:04.000Z","dependencies_parsed_at":"2022-08-26T01:11:13.496Z","dependency_job_id":null,"html_url":"https://github.com/QingWei-Li/parsedate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QingWei-Li%2Fparsedate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QingWei-Li%2Fparsedate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QingWei-Li%2Fparsedate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QingWei-Li%2Fparsedate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QingWei-Li","download_url":"https://codeload.github.com/QingWei-Li/parsedate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174468,"owners_count":20896078,"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":["date","parse","parser","string"],"created_at":"2024-10-07T15:41:12.120Z","updated_at":"2025-04-04T12:13:03.044Z","avatar_url":"https://github.com/QingWei-Li.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parsedate\n\n[![Build Status](https://travis-ci.org/QingWei-Li/parsedate.svg?branch=master)](https://travis-ci.org/QingWei-Li/parsedate)\n[![npm](https://img.shields.io/npm/v/parsedate.svg)](https://www.npmjs.com/package/parsedate)\n\n\n\u003e Converts a value to a Date\n\n## Install\n\n```sh\nnpm i parsedate\n# yarn add parsedate\n```\n\n## Usage\n\n```js\nvar parseDate = require('parsedate')\n\n// Parse string\nparseDate('738720000000')\n// =\u003e new Date('1993-05-30T00:00:00.000Z')\n\nparseDate('1995-05-30')\n// =\u003e new Date('1995-05-30T00:00:00.000Z')\n\n// Parse number\nparseDate(738720000000)\n// =\u003e new Date('1993-05-30T00:00:00.000Z')\n\n// Parse Date\nparseDate(new Date())\n// =\u003e new Date()\n\n// Parse other\nparseDate('🌚')\n// =\u003e null\nparseDate('')\n// =\u003e null\n```\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqingwei-li%2Fparsedate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqingwei-li%2Fparsedate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqingwei-li%2Fparsedate/lists"}