addOrder() - startdate
Is there a reason why when you add an order to a campaign the OrderStartDate, must be the (day you give it)+1.
e.g.
DateTime.Today.AddDays(1)
DateTime.Today, throws an invalid start date error.
I have noticed this in the reporting also, but this error was corrected there, that is the date you give is the date you give, not the date-1
[366 byte] By [
dreadjr] at [2008-2-20]
Hi,
The following works when setting the start date prior to a call to AddOrders:
orders[1].OrderStartDate = DateTime.Today;
I don’t know why this is resulting in an invalid start date for you. Please provide details about what time zone you are in and the time of day (in your time zone) when you are making the call.
Thank you.
Walter Poupore - MSFT
That is the order i am populating the order in.
First I am creating the object and populating its startdate with DateTime.Today. Then calling addOrders();
With this call i get invalid startdate, but when i add 1 day to the date, it works in the UI shows DateTime.Today.