https://github.com/jmrashed/englishdatetoarabic
Convert a date format in PHP
https://github.com/jmrashed/englishdatetoarabic
arabic date dateformat english php
Last synced: 4 months ago
JSON representation
Convert a date format in PHP
- Host: GitHub
- URL: https://github.com/jmrashed/englishdatetoarabic
- Owner: jmrashed
- Created: 2021-01-09T12:52:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-09T13:46:01.000Z (over 4 years ago)
- Last Synced: 2025-01-07T20:14:41.046Z (6 months ago)
- Topics: arabic, date, dateformat, english, php
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- 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