title: How to make PayPal Agreement start_date valid in PayPal SDK for ASP.NET
body: <p>As PayPal <a href="https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_create" rel="nofollow noreferrer">docs</a> says:</p>
  <blockquote>
  <p>...start date must be no less than 24 hours after the current date...</p>
  </blockquote>
  <p>Furthermore, judging by <a href="https://github.com/paypal/PayPal-NET-SDK/blob/develop/Samples/Source/BillingAgreementCreateAndExecute.aspx.cs" rel="nofollow noreferrer">PayPal Source code repository</a> start_should looks like <code>&quot;2016-02-19T00:37:04Z&quot;</code></p>
  <p>What is I did is:</p>
  <pre><code>var agreement = new Agreement() {
      name = Plan.name,
      description = $&quot;Agreement for {Plan.description}&quot;,
      start_date = DateTime.Now.AddHours(25).ToUniversalTime().ToString(&quot;yyyy-MM-ddTHH:mmZ&quot;),
      payer = payer,
      plan = new Plan() { id = Plan.id },
  };
  
  agreement.Create(myAPIContext);
  </code></pre>
  <p>And here is the result. My <code>start_date</code> seems right.
  <a href="https://i.stack.imgur.com/bALwf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bALwf.png" alt="enter image description here" /></a></p>
  <p>But after that I immediately catch an Exception:
  <a href="https://i.stack.imgur.com/pUBci.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pUBci.png" alt="enter image description here" /></a></p>
  <p>So, what's the problem?</p>