- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
function getNextDay($_arr_date, $day)
{
$_arr_result = array();
$str_result = '';
$str_result = substr($_arr_date[0], 0, 2);
$str_result .= '-';
$str_result .= substr($_arr_date[0], 2, 2);
$str_result .= '-';
$str_result .= substr($_arr_date[0], 4, 4);
$arrDate = explode('-', $str_result);
$_arr_result[0] = date('d-m-Y', mktime(0, 0, 0, $arrDate[1], $arrDate[0] + $day, $arrDate[2]));
$_arr_result[1] = date('d-m-Y', mktime(0, 0, 0, $arrDate[1], ($arrDate[0] + $day + 1), $arrDate[2]));
$_arr_result[2] = date('Y-m-d', mktime(0, 0, 0, $arrDate[1], $arrDate[0] + $day, $arrDate[2])); //for BD
$_arr_result[3] = date('Y-m-d', mktime(0, 0, 0, $arrDate[1], ($arrDate[0] + $day + 1), $arrDate[2])); //for BD
return $_arr_result;
}
bormand 04.06.2013 07:13 # 0
BasaDate?
neeedle 04.06.2013 07:15 # −1
bormand 04.06.2013 08:26 # +3
inkanus-gray 04.06.2013 08:40 # 0
inkanus-gray 04.06.2013 08:33 # +3
Manual query building ... NOT APPLICABLE
MySQL only ... NOT APPLICABLE
Non-atomic logic without transactions ... NOT APPLICABLE
Scan result: Where is Basa Date here?
deep 05.06.2013 04:51 # 0
guest8 11.07.2020 03:53 # −999
gost 11.07.2020 14:32 # 0
TOPT 11.07.2020 15:40 # 0
gost 11.07.2020 17:59 # 0
virusinho 11.07.2020 20:13 # 0
guest8 11.07.2020 20:15 # −999
TEH3OPHblu_nemyx 11.07.2020 21:25 # 0