Nepali Date

If you want to add Nepali date to your website, then mypatro provides you API to embed into your website. Why you should not embed Iframe because you do not have full control over the content and styling. You are bound to only use the styling provided by the Iframe itself. But with Nepali date API, you can have full control over the styling and content. To embed Nepali date to your website, please follow the simple two steps.

STEPS :

First copy and paste the placeholder where you want to show Nepali date. The date will appear inside span with id=”mypatro_nepali_date”. <span id="mypatro_nepali_date"></span>

Second copy the desired date format script and place before the “</body>” of the page.

NEPALI DATE FORMATS :

There are multiple format to display in Nepali date in your website.

Format 1 :  Day, Date Month Year / “बुधवार, २६ जेष्ठ २०७८”


<!-- mypatro.com display current nepali date -->
<script>
let _mypatroDateFormat = 1;
let _mypatroResponseType = 'html';
let script = document.createElement('script');
script.src = 'https://mypatro.com/resources/nepali_date/nepali_date.js';
document.head.appendChild(script);
</script>
<!-- mypatro.com display current nepali date -->


Format 2 : Date Month Year, Day / “२६ जेष्ठ २०७८, बुधवार”


<!-- mypatro.com display current nepali date -->
<script>
let _mypatroDateFormat = 2;
let _mypatroResponseType = 'html';
let script = document.createElement('script');
script.src = 'https://mypatro.com/resources/nepali_date/nepali_date.js';
document.head.appendChild(script);
</script>
<!-- mypatro.com display current nepali date -->


Format 3 : Year Month Date, Day / “२०७८ जेष्ठ २६, बुधवार”


<!-- mypatro.com display current nepali date -->
<script>
let _mypatroDateFormat = 3;
let _mypatroResponseType = 'html';
let script = document.createElement('script');
script.src = 'https://mypatro.com/resources/nepali_date/nepali_date.js';
document.head.appendChild(script);
</script>
<!-- mypatro.com display current nepali date -->


Format 4: Date, Year Month day / “बुधवार, २०७८ जेष्ठ २६”


<!-- mypatro.com display current nepali date -->
<script>
let _mypatroDateFormat = 4;
let _mypatroResponseType = 'html';
let script = document.createElement('script');
script.src = 'https://mypatro.com/resources/nepali_date/nepali_date.js';
document.head.appendChild(script);
</script>
<!-- mypatro.com display current nepali date -->


Format 5 : Year Month Date, day / “२०७८ जेष्ठ २६, बुधवार”


<!-- mypatro.com display current nepali date -->
<script>
let _mypatroDateFormat = 5;
let _mypatroResponseType = 'html';
let script = document.createElement('script');
script.src = 'https://mypatro.com/resources/nepali_date/nepali_date.js';
document.head.appendChild(script);
</script>
<!-- mypatro.com display current nepali date -->

Please choose the desired date format script and place in your website.

nepali date api

A website out of many using Mypatro Nepali Date API to show Nepali Date in their website.

If you are having problem adding Nepali date to your website, please feel free to contact us and we will help to add Nepali date to your website.