examples
Nepali to English
Example Code
$convertedEnglishDate = LaravelNepaliDate::from('2053-01-10')->toEnglishDate();
// Result: 1996-04-22
You can pass additional format and locale option to the toEnglishDate() method to specify format and locale. The default format is 'Y-m-d' and the default locale is 'en'.
Example Code
$result = LaravelNepaliDate::from('2053-01-10')->toEnglishDate('Y-m-d', 'np');
// Result: резрепрепрем-режрек-реиреи