You are here

public static function PHPExcel_Shared_Date::dayStringToNumber in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Date.php \PHPExcel_Shared_Date::dayStringToNumber()
1 call to PHPExcel_Shared_Date::dayStringToNumber()
PHPExcel_Calculation_DateTime::DATE in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php
* DATE * * The DATE function returns a value that represents a particular date. * * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date * format of your regional settings. PHPExcel does not change…

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Date.php, line 385

Class

PHPExcel_Shared_Date
PHPExcel_Shared_Date

Code

public static function dayStringToNumber($day) {
  $strippedDayValue = str_replace(self::$_numberSuffixes, '', $day);
  if (is_numeric($strippedDayValue)) {
    return $strippedDayValue;
  }
  return $day;
}