Get the latest time of 0:00 and the last day of the first day of a certain month!
Final print code:
print_r($_post);
echo(date(y-. $_post[‘start_time’].-01 00:00:00));
echo(date(Y-M-T 23:59:59, strtoTime(date(y-. $_post[‘end_time’].))));
echo exit();
Print result:
array ([CustomerRebate]=> array ([money]=> 1000[sale_uid]=> 31 )[start_time]=> 1[end_time]=> 10[yt0]=> confirm ) 2014-1-01 00:00:002014-10-31 23:59:59
Perfect support for reading the first day and last day of a certain month, that is, a certain time range!
