thelastender Posted February 9, 2014 Report Posted February 9, 2014 my (data) I pulled the due_date from an existing invoice even to attempt to get it right, was using date("Y-m-d G:i:s") -- Array ( [vars] => Array ( [client_id] => 6 [date_billed] => 2014-02-09 12:16:35 [due_date] => 2014-03-03 19:16:20 [currency] => USD [amount] => 10.99 [status] => active [lines] => Array ( [0] => Array ( [description] => Premium Server [qty] => 1 [amount] => 5.99 [term] => 10000 ) ) [delivery] => Array ( [0] => email ) ) ) No Matter the input I get this error stdClass Object ( [date_due] => stdClass Object ( [format] => The due date is in an invalid date format. ) )
0 Tyson Posted February 10, 2014 Report Posted February 10, 2014 I'm not sure what you were doing, but you may want to use the date format "Y-m-d H:i:s".
0 Cody Posted February 10, 2014 Report Posted February 10, 2014 On 2/10/2014 at 5:23 PM, Tyson said: I'm not sure what you were doing, but you may want to use the date format "Y-m-d H:i:s". Actually, date("c") is the best option. See API > Timestamps.
Question
thelastender
my (data) I pulled the due_date from an existing invoice even to attempt to get it right, was using date("Y-m-d G:i:s") --
Array
( [vars] => Array ( [client_id] => 6 [date_billed] => 2014-02-09 12:16:35 [due_date] => 2014-03-03 19:16:20 [currency] => USD [amount] => 10.99 [status] => active [lines] => Array ( [0] => Array ( [description] => Premium Server [qty] => 1 [amount] => 5.99 [term] => 10000 ) ) [delivery] => Array ( [0] => email ) ) )No Matter the input I get this error
stdClass Object
( [date_due] => stdClass Object ( [format] => The due date is in an invalid date format. ) )2 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now