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. ) ) Quote
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". Quote
0 Cody 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". Actually, date("c") is the best option. See API > Timestamps. Quote
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.