You are here

function cmfcCalendarV1Gregorian::change_to_miladi in Calendar Systems 7.3

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  2. 8.2 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  3. 5 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  4. 6.3 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::change_to_miladi()
  5. 6 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 224

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;
}