title: PHP Date to iCal date format for DTSTART
body: <p>Is there an easy way to get the correct format for an iCal DTSTART using php date?</p>
  
  <p>I need the format to look like: 20111008T110000 or 20111008 (that one is easy) if I don't have any time.</p>
  
  <p>Does PHP date have a quick way to do this, specifically one that adds the time or removes it when needed?</p>