https://github.com/mrzstack/englishdatetoarabic
Convert a date format in PHP
https://github.com/mrzstack/englishdatetoarabic
arabic date dateformat english php
Last synced: 8 months ago
JSON representation
Convert a date format in PHP
- Host: GitHub
- URL: https://github.com/mrzstack/englishdatetoarabic
- Owner: mrzstack
- Created: 2021-01-09T12:52:23.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-09T13:46:01.000Z (about 5 years ago)
- Last Synced: 2025-06-01T04:41:17.515Z (9 months ago)
- Topics: arabic, date, dateformat, english, php
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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