+ Reply to Thread
Results 1 to 1 of 1
Thread: Date Error?
-
12-22-2011 11:06 PM #1
Date Error?
Does this happen at midnight? I'm in the Central Time Zone, and it's 12:06AM 12-23-2011 right now.
PHP Code:[errors] => Array
(
[0] => Array
(
[code] => request_invalid
[msg] => 20111223 is a date in the future
)
[1] => Array
(
[code] => request_invalid
[msg] => commissionDateRange must be in Ymd,Ymd format
)
[2] => Array
(
[code] => commissionDateRange_required
[msg] => commissionDateRange is required
)
)
PHP Code:$FIFTEENDAYS = date('Ymd', time() - 86400 * 15) ;
// $TODAY = date('Ymd') ;
$TODAY = date('Ymd', time() - 86400 * 1) ;
$_TimeRange = $FIFTEENDAYS . ',' . $TODAY ;
Last edited by NiTe; 12-22-2011 at 11:11 PM.
"The greatest limitation in coding is imagination."
-- Amazon Browse Node Database: .
-- Create a Free Publisher Account