{"id":20664190,"url":"https://github.com/nigelramsay/stringify_date","last_synced_at":"2026-04-17T20:31:47.825Z","repository":{"id":422333,"uuid":"42248","full_name":"nigelramsay/stringify_date","owner":"nigelramsay","description":"Rails plugin to define a get and set method for dates using your own format","archived":false,"fork":false,"pushed_at":"2008-08-13T09:19:32.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T11:11:24.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.abletech.co.nz/blog","language":"Ruby","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/nigelramsay.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-08-13T08:36:38.000Z","updated_at":"2019-08-13T13:31:30.000Z","dependencies_parsed_at":"2022-08-16T10:25:11.227Z","dependency_job_id":null,"html_url":"https://github.com/nigelramsay/stringify_date","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nigelramsay/stringify_date","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelramsay%2Fstringify_date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelramsay%2Fstringify_date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelramsay%2Fstringify_date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelramsay%2Fstringify_date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nigelramsay","download_url":"https://codeload.github.com/nigelramsay/stringify_date/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelramsay%2Fstringify_date/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31944971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-16T19:22:47.099Z","updated_at":"2026-04-17T20:31:47.800Z","avatar_url":"https://github.com/nigelramsay.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"StringifyDate\n=============\n\nNote: work in progress\n\nRails plugin to define a get and set method for dates using your own format. \n\nSimple example\n==============\n\nclass Person \u003c ActiveRecord::Base\n  stringify_date :born_on, :format =\u003e :nz_format\nend\n\nCreates two methods called 'born_on_string' and 'born_on_string=' which will create, and parse date strings using the 'nz_format' as specified in ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS. This is often declared in your application.rb file.\n\nComplex example\n===============\n\nclass Person \u003c ActiveRecord::Base\n  stringify_date :born_on, :format =\u003e :nz_format, \n                 :stringified_name =\u003e 'birth_date', :required =\u003e true, \n                 :required_message =\u003e 'is a mandatory field',\n                 :invalid_message =\u003e 'should be in the format DD/MM/YYYY'\nend\n\n\nError handling\n==============\n\nCreates an error message on the stringified field if:\n  - string does not parse (ie: invalid format supplied)\n  - required was true, but not supplied\n\nTODO expand doco\n\nCredits\n=======\n\nRyan Bates for the original idea in his screencast \"Making a plugin\" \nhttp://railscasts.com/episodes/33-making-a-plugin\n\nRadio New Zealand who gave back to the community\nhttp://www.radionz.co.nz\n\nAble Technology for sponsoring further enhancements and testing\nhttp://www.abletech.co.nz\n\nCopyright (c) 2008 Nigel Ramsay, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelramsay%2Fstringify_date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnigelramsay%2Fstringify_date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelramsay%2Fstringify_date/lists"}