{"id":22062763,"url":"https://github.com/ryan-haskell/elm-date-format","last_synced_at":"2026-03-10T06:04:43.686Z","repository":{"id":62419503,"uuid":"122359685","full_name":"ryan-haskell/elm-date-format","owner":"ryan-haskell","description":"A reliable way to format dates with Elm.","archived":false,"fork":false,"pushed_at":"2018-10-02T22:17:33.000Z","size":31,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-12T22:47:35.214Z","etag":null,"topics":["date","elm","formatter","momentjs"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/ryannhg/elm-date-format/latest","language":"Elm","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/ryan-haskell.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}},"created_at":"2018-02-21T16:12:44.000Z","updated_at":"2024-11-14T09:51:59.000Z","dependencies_parsed_at":"2022-11-01T16:48:51.444Z","dependency_job_id":null,"html_url":"https://github.com/ryan-haskell/elm-date-format","commit_stats":null,"previous_names":["ryan-haskell/elm-date-format","ryannhg/elm-date-format"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ryan-haskell/elm-date-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-haskell%2Felm-date-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-haskell%2Felm-date-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-haskell%2Felm-date-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-haskell%2Felm-date-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryan-haskell","download_url":"https://codeload.github.com/ryan-haskell/elm-date-format/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan-haskell%2Felm-date-format/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","elm","formatter","momentjs"],"created_at":"2024-11-30T18:26:49.143Z","updated_at":"2026-03-10T06:04:43.645Z","avatar_url":"https://github.com/ryan-haskell.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-date-format\n\u003e A reliable way to format dates with Elm.\n\n[![Build Status](https://travis-ci.org/ryannhg/elm-date-format.svg?branch=master)](https://travis-ci.org/ryannhg/elm-date-format)\n\n### DEPRECATED: There's a new version!\n\nIf you are able to use Elm 0.19, you should check out [ryannhg/date-format](https://www.github.com/ryannhg/date-format).\n\nThat version will have the latest updates and features (like supporting multiple languages!)\n\n\n### Using the [elm package](http://package.elm-lang.org/packages/ryannhg/elm-date-format/latest)\n\n```\nelm package install ryannhg/elm-date-format\n```\n\n\n### What is `elm-date-format`?\n\nIf you're coming from Javascript, you might have heard of [MomentJS](https://momentjs.com).\n\nMomentJS is a great library for formatting dates!\n\n`elm-date-format` has the same [formatting options](https://momentjs.com/docs/#/displaying/format/) as Moment, but uses Elm's awesome type system to provide human readable names, and catch typos for you at compile time!\n\nNo need to remember the difference between `mm` and `MM` and `M`!\n\n\n### A quick example\n\n```elm\nimport Date exposing (Date)\nimport DateFormat\n\n\n-- Create a custom formatter\n\nyourFormatter : Date -\u003e String\nyourFormatter =\n    DateFormat.format\n        [ DateFormat.monthNameFull\n        , DateFormat.text \" \"\n        , DateFormat.dayOfMonthSuffix\n        , DateFormat.text \", \"\n        , DateFormat.yearNumber\n        ]\n\n\n-- Using your formatter, format your date as a string!\n\nyourPrettyDate : String\nyourPrettyDate =\n    case Date.fromString \"2018-02-05T00:00:00.000\" of\n        Ok date -\u003e\n            yourFormatter date\n\n        Err -\u003e\n            \"This shouldn't happen...\"\n\n```\n\nWould make `yourPrettyDate` return:\n\n```\n\"February 5th, 2018\" : String\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryan-haskell%2Felm-date-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryan-haskell%2Felm-date-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryan-haskell%2Felm-date-format/lists"}