title: VB DateAdd to String
body: <p>Im trying to get the DateAdd function as a string </p>
  
  <p>So far i got </p>
  
  <pre><code>Dim newDate 
  newDate = DateAdd("m", 1, date)
  MsgBox(newDate.ToString("d"))
  </code></pre>
  
  <p>Which gets error object required </p>
  
  <p>Im trying to create a photoshop script that gets the date and adds on 1 month then writes to the active text layer </p>
  
  <pre><code>'Get and Change Expiry Date 
  docRef.ActiveLayer = docRef.Layers(3)
  Set textItemRef = docRef.ActiveLayer.TextItem
  
  Dim newDate 
  newDate = DateAdd("m", 1, date)
  textItemRef.Contents = newDate.ToString("d")
  </code></pre>
  
  <p>Any help will be great </p>