Here's a little trick to obtain dates in the Nepali language:
'IntlDateFormatter::NONE',
IntlDateFormatter::SHORT => 'IntlDateFormatter::SHORT',
IntlDateFormatter::MEDIUM => 'IntlDateFormatter::MEDIUM',
IntlDateFormatter::LONG => 'IntlDateFormatter::LONG',
IntlDateFormatter::FULL => 'IntlDateFormatter::FULL',
);
$locale = 'ne_NP';
$time_zone = 'Asia/Katmandu';
foreach($formats as $format => $label){
echo $label . PHP_EOL;
$fmt = new IntlDateFormatter($locale, $format, $format, $time_zone, IntlDateFormatter::GREGORIAN);
echo $fmt->format(new DateTime) . PHP_EOL;
echo PHP_EOL;
}
IntlDateFormatter::NONE
२०१४०२०४ ०६:१७ उत्तर मध्यान्ह
IntlDateFormatter::SHORT
२०१४-०२-०४ १८:१७
IntlDateFormatter::MEDIUM
२०१४ फेब ४ १८:१७:०९
IntlDateFormatter::LONG
२०१४ फेब्रुअरी ४ १८:१७:०९ GMT+५:४५
IntlDateFormatter::FULL
२०१४ फेब्रुअरी ४, मङ्गलबार १८:१७:०९ GMT+०५:४५