PHP intl can convert a Gregorian date to other calendar type.
For example Gregorian to Hijri, 2017/04/11 to 1396/01/22
2017/04/11
1396/01/22
Or we must u
PHP Already has date format functions, you need to convert first with strtotime() function and get the desired values with date()
strtotime()
date()
Example working here: https://eval.in/772416
You can get more info about date in php here: http://php.net/manual/en/function.date.php