{"id":30642180,"url":"https://github.com/jabercrombia/date-utility","last_synced_at":"2025-08-31T02:06:41.962Z","repository":{"id":301288429,"uuid":"1008763971","full_name":"jabercrombia/date-utility","owner":"jabercrombia","description":"A simple TypeScript utility function to format UTC date strings into \"Month Day, Year\" format.","archived":false,"fork":false,"pushed_at":"2025-06-26T04:21:10.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T05:25:47.989Z","etag":null,"topics":["date","dateformat","dateformatter","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jabercrombia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-26T04:13:11.000Z","updated_at":"2025-06-26T04:22:04.000Z","dependencies_parsed_at":"2025-06-26T05:35:58.037Z","dependency_job_id":null,"html_url":"https://github.com/jabercrombia/date-utility","commit_stats":null,"previous_names":["jabercrombia/date-utility"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jabercrombia/date-utility","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fdate-utility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fdate-utility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fdate-utility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fdate-utility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabercrombia","download_url":"https://codeload.github.com/jabercrombia/date-utility/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fdate-utility/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272930015,"owners_count":25017058,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["date","dateformat","dateformatter","typescript"],"created_at":"2025-08-31T02:06:41.391Z","updated_at":"2025-08-31T02:06:41.934Z","avatar_url":"https://github.com/jabercrombia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Date Utilities\n\nThis package provides simple TypeScript utility functions to format date strings into readable formats.\n\n## 📦 Installation\n\nYou can install this utility directly from GitHub in your Next.js or TypeScript project.\n\nUsing **npm**:\n\n```bash\nnpm install github:jabercrombia/date-utility\n```\n\n## Functions\n\n### `formatDate(dateString: string): string`\n\nFormats a date string into a short month and numeric year (e.g., \"Jun 2025\") using the US English locale.\n\n**Parameters:**\n- `dateString`: The date string to format (ISO 8601 or compatible).\n\n**Returns:**\n- Formatted date string with abbreviated month and year.\n\n### `formatUTCToMonthDayYear(dateString: string): string`\n\nConverts an ISO UTC date string to a human-readable format: \"Month Day, Year\".\n\n**Example:** `\"2025-06-06T00:00:00.000-05:00\"` → `\"June 6, 2025\"`\n\n**Parameters:**\n- `dateString`: A valid ISO date string (UTC or with timezone offset).\n\n**Returns:**\n- A formatted string in the \"Month Day, Year\" format.\n\n## Usage\n\n```ts\nimport { formatDate, formatUTCToMonthDayYear } from \"@jabercrombia/date-utils\";\n\nconsole.log(formatDate(\"2025-06-06T00:00:00.000-05:00\")); // Jun 2025\nconsole.log(formatUTCToMonthDayYear(\"2025-06-06T00:00:00.000-05:00\")); // June 6, 2025\n```\n\n## Troubeshoot\n\nIf you are running into issues during the install run the below commands. It will remove the node_modules directory and package-lock.json. Then try rerunning the installation. \n\n```bash\nrm -rf node_modules\nrm package-lock.json\n\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabercrombia%2Fdate-utility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabercrombia%2Fdate-utility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabercrombia%2Fdate-utility/lists"}