public static function PHPExcel_Shared_Date::monthStringToNumber in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Date.php \PHPExcel_Shared_Date::monthStringToNumber()
1 call to PHPExcel_Shared_Date::monthStringToNumber()
- 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 374
Class
- PHPExcel_Shared_Date
- PHPExcel_Shared_Date
Code
public static function monthStringToNumber($month) {
$monthIndex = 1;
foreach (self::$_monthNames as $shortMonthName => $longMonthName) {
if ($month === $longMonthName || $month === $shortMonthName) {
return $monthIndex;
}
++$monthIndex;
}
return $month;
}