Skip to content

This package Converts Date Time to Bangla Date Time using EasyBanglaDate.

Notifications You must be signed in to change notification settings

rajurayhan/bndatetime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Bangla Date Time Converter for Laravel!

This package Converts Date Time to Bangla Date Time using EasyBanglaDate.

Dependency

  • Laravel >=5.2
  • ronisaha/easy-bangla-date

Installation

Install Bangla Date Converter via Composer

composer require rajurayhan/bndatetime dev-master

Usage

use Rajurayhan\Bndatetime\BnDateTimeConverter; // on Top

$dateConverter  =  new  BnDateTimeConverter();
$dateConverter->getConvertedDateTime('2018-09-07 12:19:50 pm',  'EnBn', ''); // Friday 23rd Bhadra 1425 12:19:50 pm
$dateConverter->getConvertedDateTime('2018-09-07 12:19:50 pm',  'BnBn', ''); // শুক্রবার ২৩শে ভাদ্র ১৪২৫ দুপুর ১২:১৯:৫০
$dateConverter->getConvertedDateTime('2018-09-07 12:19:50 pm',  'BnEn', ''); // শুক্রবার ৭ই সেপ্টেম্বর ২০১৮ দুপুর ১২:১৯:৫০
$dateConverter->getConvertedDateTime('2018-09-07 12:19:50 pm',  'EnEn', ''); // Friday 7th September 2018 12:19:50 PM

getConvertedDateTime() Method Takes Three Parameter - Date,Type, Format. Format is Nullable and it will return 'l jS F Y b h:i:s' if format is Null.

Find Me

Email: devraju.bd@gmail.com 

Releases

No releases published

Packages

No packages published

Languages