How to fix this IntlDateFormatter issue?

In Localhost IntlDateFormatter working fine but after uploading on domain it changed. Exe. (January = 1, February = 2). Here are my php code:

[php]$now = new DateTime('January 09, 2016');    //DateTime is a core PHP class as of version 5.2.0
        
$formatter = new IntlDateFormatter('ne_NP', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Asia/Kathmandu', IntlDateFormatter::GREGORIAN,'MMMM dd, yyyy');

echo $formatter->format($now);[/php]

Here are the output screenshot In [ocalhost screenshot And Uploaded screenshot. How can I fix it?

Server PHP Version 5.4.45

Your help will be appreciate.


Screen Shot 2017-03-03 at 6.08.36 PM.png

Screen Shot 2017-03-03 at 6.16.40 PM.png

What is with the formatting?

'MMMM dd, yyyy'

yea!

I wanna convert like March 03, 2017 to मार्च ०३, २०१७. In local host working fine but after uploading in server it convert 3 03, 2017 how to fix it?

And why did you put four 'M’s?

Sponsor our Newsletter | Privacy Policy | Terms of Service