{"id":18147266,"url":"https://github.com/sky93/ezdate","last_synced_at":"2025-04-06T21:27:37.475Z","repository":{"id":57232067,"uuid":"74191219","full_name":"sky93/ezdate","owner":"sky93","description":"The easiest way to convert dates to persian date.","archived":false,"fork":false,"pushed_at":"2016-12-14T09:14:20.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T03:39:22.084Z","etag":null,"topics":["convert-dates","date","jquery","jquery-plugin","plugin"],"latest_commit_sha":null,"homepage":"","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/sky93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-19T06:22:25.000Z","updated_at":"2019-07-20T09:57:24.000Z","dependencies_parsed_at":"2022-08-30T14:50:08.300Z","dependency_job_id":null,"html_url":"https://github.com/sky93/ezdate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky93%2Fezdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky93%2Fezdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky93%2Fezdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky93%2Fezdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sky93","download_url":"https://codeload.github.com/sky93/ezdate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247553032,"owners_count":20957392,"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":["convert-dates","date","jquery","jquery-plugin","plugin"],"created_at":"2024-11-01T22:06:08.996Z","updated_at":"2025-04-06T21:27:37.453Z","avatar_url":"https://github.com/sky93.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ezdate: a jQuery plugin\n[![NPM](https://img.shields.io/npm/v/ezdate.svg)](https://www.npmjs.com/package/ezdate)\n[![Bower](https://img.shields.io/bower/v/ezdate.svg)](http://bower.io/search/?q=ezdate)\n[![npm](https://img.shields.io/npm/l/ezdate.svg)](https://github.com/sky93/ezdate/blob/master/License.md)\n[![Github All Releases](https://img.shields.io/npm/dt/ezdate.svg)](https://github.com/sky93/ezdate)\n\nThe easiest and the best way to convert dates to persian date.\n\n---\nezdate is a **1 KB** (gzipped, minfied) jquery function that converts dates in your website automatically to persian date.\n\n---\n## Usage\n\nFirst, load jQuery and the plugin:\n\n```html\n\u003cscript src=\"jquery.min.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"jquery.ezdate.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n\nNow, let's attach it to your timestamps on DOM ready - put this in the head\nsection:\n\n```html\n\u003cscript type=\"text/javascript\"\u003e\n   jQuery(document).ready(function() {\n     $(\"time.ezdate\").ezdate();\n   });\n\u003c/script\u003e\n```\n\nThis will turn all `\u003ctime\u003e` elements with a class of `ezdate` and a\n`datetime` attribute:\n\n```html\n\u003ctime class=\"ezdate\" datetime=\"10/18/1993\"\u003eOctober 18, 1993\u003c/time\u003e\n```\n\ninto something like this:\n\n```html\n\u003ctime class=\"ezdate\" datetime=\"10/18/1993\"\u003e26/7/1372\u003c/time\u003e\n```\n\n##Options\n####`persianNumber` (_default: `false`_)\n\n```javascript\n$(\"time.ezdate\").ezdate({\n    persianNumber: true\n});\n````\nTurns:\n```html\n\u003ctime class=\"ezdate\" datetime=\"10/18/1993\"\u003eOctober 18, 1993\u003c/time\u003e\n```\ninto\n```html\n\u003ctime class=\"ezdate\" datetime=\"10/18/1993\"\u003e۲۶/۷/۱۳۷۲\u003c/time\u003e\n```\n\n---\n####`attrName` (_default: `'data-datetime'`_)\nDate source attribute. It's recommended to use `data-datetime` for ezdate as it's HTML5 friendly too.\n\n---\n####`dateFormat` (_default: `D/M/YYYY`_)\nYou can use your custom date format to show.\n\n*Some examples:*\n\n| Value         | Meaning      |\n|---------------|--------------|\n| `D/M/YYYY`    | 26/7/1372    |\n| `D/MM/YYYY`   | 26/07/1372   |\n| `DD/MMM/YYYY` | 26/مهر/1372  |\n\n---\nezdate also calls `complete` function when finished its job as callback.\n\nEnjoy using ezdate!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky93%2Fezdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsky93%2Fezdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky93%2Fezdate/lists"}