{"id":39141,"date":"2015-09-26T02:52:16","date_gmt":"2015-09-26T02:52:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/nepali-date-converter\/"},"modified":"2025-05-18T05:10:49","modified_gmt":"2025-05-18T05:10:49","slug":"nepali-date-converter","status":"publish","type":"plugin","link":"https:\/\/test.wordpress.org\/plugins\/nepali-date-converter\/","author":15640339,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.0.5","stable_tag":"3.0.5","tested":"6.8.5","requires":"4.9","requires_php":"7.2","requires_plugins":null,"header_name":"Nepali Date Converter","header_author":"addonspress","header_description":"","assets_banners_color":"fff7ed","last_updated":"2025-05-18 05:10:49","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.addonspress.com\/","header_plugin_uri":"https:\/\/www.addonspress.com\/wordpress-plugins\/nepali-date-converter\/","header_author_uri":"https:\/\/www.addonspress.com\/","rating":5,"author_block_rating":0,"active_installs":900,"downloads":13922,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"addonspress","date":"2020-05-03 13:40:48"},"1.0.1":{"tag":"1.0.1","author":"addonspress","date":"2020-06-10 12:42:39"},"2.0.0":{"tag":"2.0.0","author":"addonspress","date":"2020-06-11 17:33:19"},"2.0.1":{"tag":"2.0.1","author":"codersantosh","date":"2021-04-21 03:22:52"},"2.0.2":{"tag":"2.0.2","author":"codersantosh","date":"2021-04-21 03:22:52"},"2.0.3":{"tag":"2.0.3","author":"addonspress","date":"2022-01-05 12:16:35"},"2.0.4":{"tag":"2.0.4","author":"addonspress","date":"2022-02-04 14:16:38"},"2.0.5":{"tag":"2.0.5","author":"addonspress","date":"2022-02-24 18:28:02"},"2.0.6":{"tag":"2.0.6","author":"addonspress","date":"2024-04-07 07:31:53"},"2.0.7":{"tag":"2.0.7","author":"addonspress","date":"2024-06-15 12:53:37"},"2.0.8":{"tag":"2.0.8","author":"addonspress","date":"2024-10-31 12:54:58"},"3.0.0":{"tag":"3.0.0","author":"addonspress","date":"2025-03-28 18:06:49"},"3.0.1":{"tag":"3.0.1","author":"addonspress","date":"2025-03-28 18:43:44"},"3.0.2":{"tag":"3.0.2","author":"addonspress","date":"2025-03-29 17:50:52"},"3.0.3":{"tag":"3.0.3","author":"addonspress","date":"2025-04-17 11:22:46"},"3.0.4":{"tag":"3.0.4","author":"addonspress","date":"2025-05-02 07:43:12"},"3.0.5":{"tag":"3.0.5","author":"addonspress","date":"2025-05-18 05:10:49"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":3},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2322536,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2322536,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2322536,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2322536,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2322536,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2322542,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2321572,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2321572,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2321572,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2321572,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2321572,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2321572,"resolution":"7","location":"assets","locale":""}},"screenshots":{"1":"Post date in Nepali","2":"Date converter widget (backend)","3":"Today\u2019s date widget (backend)","4":"Widget settings","5":"Date converter frontend","6":"Today\u2019s date frontend","7":"Combined output via shortcode"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[45387,45385,75828,226350,45386],"plugin_category":[],"plugin_contributors":[183871,176432,87858],"plugin_business_model":[],"class_list":["post-39141","plugin","type-plugin","status-publish","hentry","plugin_tags-english-to-nepali-date-converter","plugin_tags-nepali-date-converter","plugin_tags-nepali-post-date","plugin_tags-nepali-to-english-date-converter","plugin_tags-today-nepali-date","plugin_contributors-acmeit","plugin_contributors-addonspress","plugin_contributors-codersantosh","plugin_committers-addonspress","plugin_committers-codersantosh"],"banners":{"banner":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/banner-772x250.png?rev=2322536","banner_2x":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/banner-1544x500.png?rev=2322536","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/icon.svg?rev=2322536","icon":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/icon.svg?rev=2322536","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/screenshot-1.png?rev=2322542","caption":"Post date in Nepali"},{"src":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/screenshot-2.png?rev=2321572","caption":"Date converter widget (backend)"},{"src":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/screenshot-3.png?rev=2321572","caption":"Today\u2019s date widget (backend)"},{"src":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/screenshot-4.png?rev=2321572","caption":"Widget settings"},{"src":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/screenshot-5.png?rev=2321572","caption":"Date converter frontend"},{"src":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/screenshot-6.png?rev=2321572","caption":"Today\u2019s date frontend"},{"src":"https:\/\/ps.w.org\/nepali-date-converter\/assets\/screenshot-7.png?rev=2321572","caption":"Combined output via shortcode"}],"raw_content":"<!--section=description-->\n<p>Nepali Date Converter makes converting dates between English (Gregorian) and Nepali (Bikram Sambat) formats easy. Whether you're building a Nepali-language WordPress site or just need to display today\u2019s Nepali date, this plugin has you covered.<\/p>\n\n<p>For the best experience with Nepali Date Converter, check out the free <a href=\"https:\/\/wordpress.org\/themes\/cosmoswp\/\">CosmosWP<\/a> theme. \n<a href=\"https:\/\/demo.cosmoswp.com\/demo-99\/\">View Demo<\/a> \u2192 See Nepali Date Converter in action with real-world implementations.<\/p>\n\n<p>Includes:\n- Post Date to Nepali conversion\n- Today\u2019s Nepali date display\n- Nepali human time differences (e.g., \"\u0969 \u0938\u0947\u0915\u0947\u0928\u094d\u0921 \u0905\u0917\u093e\u0921\u093f\")\n- Shortcodes and widgets\n- Custom functions for developers<\/p>\n\n<p>Fully rewritten for version 3.0.0, this release modernizes the plugin from the ground up, improves accuracy, and ensures better compatibility.<\/p>\n\n<h3>Key Features<\/h3>\n\n<ul>\n<li>\ud83d\udd01 Convert English \u2194 Nepali dates<\/li>\n<li>\ud83d\uddd3\ufe0f Show Nepali date for post publish dates<\/li>\n<li>\u23f3 Nepali human time differences (e.g., \u0969 \u092e\u093f\u0928\u0947\u091f \u0905\u0917\u093e\u0921\u093f)<\/li>\n<li>\ud83e\udde9 Widgets: Date Converter and Today\u2019s Date<\/li>\n<li>\ud83e\uddea Shortcodes: <code>[nepali-date-converter]<\/code>, <code>[ndc-today-date]<\/code><\/li>\n<li>\ud83d\udd27 Developer functions: <code>ndc_eng_to_nep_date<\/code>, <code>ndc_nep_to_eng_date<\/code>, and more<\/li>\n<li>\ud83d\udcc5 Supports Bikram Sambat years 2000 to 2099 BS<\/li>\n<li>\ud83d\udd12 Security improvements and code hardening<\/li>\n<\/ul>\n\n<h3>Shortcodes<\/h3>\n\n<h3>1. <code>[nepali-date-converter]<\/code><\/h3>\n\n<p>Display a Nepali date converter form.<\/p>\n\n<p><strong>Attributes:<\/strong>\n- <code>title<\/code>: Custom title (default: Nepali Date Converter)\n- <code>result_format<\/code>: Format for output (e.g., <code>l, F j, Y<\/code>)\n- <code>disable_ndc_convert_eng_to_nep<\/code>: <code>1<\/code> to disable English to Nepali conversion\n- <code>disable_ndc_convert_nep_to_eng<\/code>: <code>1<\/code> to disable Nepali to English conversion\n- <code>nepali_date_lang<\/code>: <code>nep_char<\/code> (e.g., <code>\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930, \u0905\u0936\u094b\u091c \u096e, \u0968\u0966\u096d\u0968<\/code>) or <code>eng_char<\/code><\/p>\n\n<p><strong>Examples:<\/strong>\n    <code>[nepali-date-converter]\n[nepali-date-converter title=\"Nepali Date\"]\n[nepali-date-converter title=\"Nepali date\" result_format=\"l, F j, Y\"]<\/code><\/p>\n\n<h3>2. <code>[ndc-today-date]<\/code><\/h3>\n\n<p>Displays today\u2019s Nepali date.<\/p>\n\n<h3>Widgets<\/h3>\n\n<ul>\n<li><strong>NDC: Nepali Date Converter<\/strong> \u2013 Date converter widget<\/li>\n<li><strong>NDC: Today Date<\/strong> \u2013 Show today\u2019s Nepali date<\/li>\n<\/ul>\n\n<h3>Developer Functions<\/h3>\n\n<ul>\n<li><code>ndc_eng_to_nep_date()<\/code> \u2013 Convert English to Nepali<\/li>\n<li><code>ndc_convert_eng_to_nep()<\/code> \u2013 Convert using formatted string<\/li>\n<li><code>ndc_nep_to_eng_date()<\/code> \u2013 Convert Nepali to English<\/li>\n<li><code>ndc_convert_nep_to_eng()<\/code> \u2013 Convert using formatted string<\/li>\n<\/ul>\n\n<p>Use in code:\necho do_shortcode('[nepali-date-converter]');\necho do_shortcode('[ndc-today-date]');\n    `\nPlease visit <a href=\"https:\/\/www.addonspress.com\/wordpress-plugins\/nepali-date-converter\/\">Nepali Date Converter<\/a> for more information about another shortcode [ndc-today-date] and for all available functions.<\/p>\n\n<!--section=installation-->\n<p><strong>Automatic Installation:<\/strong>\n1. Go to Plugins \u2192 Add New\n2. Search for \"Nepali Date Converter\"\n3. Click Install and then Activate<\/p>\n\n<p><strong>Manual Installation:<\/strong>\n1. Upload the <code>nepali-date-converter<\/code> folder to <code>\/wp-content\/plugins\/<\/code>\n2. Activate via the Plugins menu<\/p>\n\n<p>After activation:\n- Go to Appearance \u2192 Widgets to use NDC widgets\n- Use shortcodes in posts\/pages as needed\n- To enable Nepali Post Date, go to Settings \u2192 General and scroll to the bottom<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='what%E2%80%99s%20new%20in%20version%203.0.0%3F'><h3>What\u2019s new in version 3.0.0?<\/h3><\/dt>\n<dd><ul>\n<li>Full plugin rewrite using modern PHP practices<\/li>\n<li>Deprecated functions removed<\/li>\n<li>Date conversion engine improved<\/li>\n<li>Date range supported: 2000 BS to 2099 BS<\/li>\n<li>Minimum PHP version now required: 7.2+<\/li>\n<li>Security improvements<\/li>\n<\/ul><\/dd>\n<dt id='can%20i%20show%20post%20publish%20dates%20in%20nepali%3F'><h3>Can I show post publish dates in Nepali?<\/h3><\/dt>\n<dd><p>Yes, enable it from Settings \u2192 General (scroll to the bottom).<\/p><\/dd>\n<dt id='can%20i%20use%20this%20in%20theme%20or%20plugin%20development%3F'><h3>Can I use this in theme or plugin development?<\/h3><\/dt>\n<dd><p>Absolutely. Use the helper functions or shortcodes as needed.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.0.5<\/h4>\n\n<ul>\n<li>Fixed: Corrected the number of days for months in BS 2082.<\/li>\n<\/ul>\n\n<h4>3.0.4 - 2025-05-02<\/h4>\n\n<ul>\n<li>Fixed: <a href=\"https:\/\/github.com\/codersantosh\/nepali-date-converter\/issues\/13\">Return proper integer for format 'U'<\/a>  <\/li>\n<li>Fixed: <a href=\"https:\/\/github.com\/codersantosh\/nepali-date-converter\/issues\/13\">Better post date extraction<\/a>  <\/li>\n<li>Fixed: <a href=\"https:\/\/github.com\/codersantosh\/nepali-date-converter\/issues\/13\">Add a filter to correct time display<\/a>  <\/li>\n<\/ul>\n\n<h4>3.0.3 - 2025-04-17<\/h4>\n\n<ul>\n<li>Added: WordPress latest compatibility<\/li>\n<li>Fixed: Adjusted post date to 5:45 AM in Kathmandu time zone before converting to Nepali date format.  <\/li>\n<li>Fixed: Replaced <code>date()<\/code> with <code>gmdate()<\/code> to ensure UTC-based date formatting and avoid time zone issues.<\/li>\n<\/ul>\n\n<h4>3.0.2 - 2025-03-29<\/h4>\n\n<ul>\n<li>Fixed: Ensured 0 hour is correctly handled in date formatting<\/li>\n<li>Fixed: Added checks to prevent fatal errors from themes passing invalid date formats<\/li>\n<\/ul>\n\n<h4>3.0.1 - 2025-03-29<\/h4>\n\n<ul>\n<li>Fixed: Few translation issue<\/li>\n<\/ul>\n\n<h4>3.0.0 - 2025-03-28<\/h4>\n\n<ul>\n<li>Rewrite: Complete plugin rewrite with modern codebase<\/li>\n<li>Removed: Deprecated and legacy functions<\/li>\n<li>Improved: Date conversion logic and accuracy<\/li>\n<li>Supported: Dates from 2000 to 2099 BS<\/li>\n<li>Security: Code hardening and data sanitization<\/li>\n<li>Requirement: PHP 7.2+ minimum<\/li>\n<\/ul>\n\n<h4>2.0.8 - 2024-10-31<\/h4>\n\n<ul>\n<li>Added: WordPress latest compatibility<\/li>\n<li>Added: Language folder<\/li>\n<\/ul>\n\n<h4>2.0.7 - 2024-06-15<\/h4>\n\n<ul>\n<li>Fixed : <a href=\"https:\/\/wordpress.org\/support\/topic\/jestha-32-is-not-showing\/\">Date issue<\/a><\/li>\n<\/ul>\n\n<h4>2.0.6 - 2024-04-07<\/h4>\n\n<ul>\n<li>Updated : Tested up WordPress 6.5<\/li>\n<\/ul>\n\n<h4>2.0.5 - 2022-02-25<\/h4>\n\n<ul>\n<li>Fixed: Post Date Array notice in some cases<\/li>\n<\/ul>\n\n<h4>2.0.4 - 2022-02-04<\/h4>\n\n<ul>\n<li>Updated: WordPress version<\/li>\n<\/ul>\n\n<h4>2.0.3 - 2022-01-05<\/h4>\n\n<ul>\n<li>Added: Post Type Support<\/li>\n<\/ul>\n\n<h4>2.0.2 - 2021-04-21<\/h4>\n\n<ul>\n<li>Updated: WordPress version<\/li>\n<\/ul>\n\n<h4>2.0.1 - 2020-06-11<\/h4>\n\n<ul>\n<li>Added: New Feature =&gt; Nepali Human Time Diff<\/li>\n<li>Updated: NDC_Nepali_Calendar<\/li>\n<\/ul>\n\n<h4>2.0.0 - 2020-06-10<\/h4>\n\n<ul>\n<li>Added: New Feature =&gt; Show Post Date to Nepali<\/li>\n<li>Updated: Code Review<\/li>\n<li>Updated: Prefix<\/li>\n<\/ul>\n\n<h4>1.0.1 - 2020-05-03<\/h4>\n\n<ul>\n<li>Updated: Latest version test<\/li>\n<li>Added: Contributor<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<p>Initial version<\/p>","raw_excerpt":"Convert English dates to Nepali and vice versa, including WordPress post dates. Includes widgets, shortcodes, and custom functions.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/39141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=39141"}],"author":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/addonspress"}],"wp:attachment":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=39141"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=39141"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=39141"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=39141"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=39141"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=39141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}