Skip to content

jmrashed/EnglishDateToArabic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EnglishDateToArabic

Convert a date format in PHP Suppose, your original date is 2021-01-06, and you want to convert as like d-m-Y

			$originalDate = "2010-03-21";
			$newDate = date("d-m-Y", strtotime($originalDate));
			echo $newDate;

Output will be 21-03-2010

Releases

No releases published

Packages

No packages published