You are here

function cmfcCalendarV1Gregorian::change_to_miladi in Calendar Systems 8.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  2. 5 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  3. 6.3 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  4. 6 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  5. 7.3 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  6. 7 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  7. 7.2 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()

File

calendar/v1/calendarSystems/gregorian.class.inc.php, line 225

Class

cmfcCalendarV1Gregorian
@desc

Code

function change_to_miladi($date) {
  $date = explode("-", $date);
  $date = cmfcDateTime::jalaliToGregorian($date[0], $date[1], $date[2]);

  //$date[1] = $date[1] -1;
  $date = $date[0] . "-" . $date[1] . "-15";
  return $date;
}