mehedi
262
2
General

Translate Date Using Carbon

Posted 1 year ago by mehedi

Hi Experts!

I have a little problem about carbon localization. It's perfectly work when I use like


Carbon::setLocale('bn');

Carbon::now()->diffForHumans();

But when I trying this way it will return English

Carbon::setLocale('bn');
Carbon::now()->year
Output: 2017. But I expect ২০১৭.

So how can i get my expected value using carbon localization ????

Regards Mehedi Hasan

Please sign in or create an account to participate in this conversation.