locale - Required to get current nepal year only in php ?? Is there any solution? -


i current year i.e 2014 <?php echo date('y');?>. want nepal current date 2071.how nepal date u please me nepal current date.is there way current nepali year <?php echo date('y');?>.

you use carbon this: https://github.com/briannesbitt/carbon

the formula is: datetoday + 56 years + 8 months + 15 days

to in carbon:

<?php  $todaysdateingregorian = carbon::now(); $currentdateinnepal = $todaysdateingregorian->addyears(56)->addmonths(8)->adddays(15);  ?> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -