1// $val['number'] => cell on excel
2
3$start_y = intval($val[5]) == 0 ? date("Y") : $val[5];
4$start_m = intval($val[6]) == 0 ? date("m") : $val[6];
5$start_d = intval($val[7]) == 0 ? date("d") : $val[7];
6$end_y = intval($val[8]) == 0 ? date("Y") + 1 : $val[8];
7$end_m = intval($val[9]) == 0 ? date("m") : $val[9];
8$end_d = intval($val[10]) == 0 ? date("d") : $val[10];