title: How to get date which is going to be after 3 months?
body: <p>How do i get 3 months after the date of today in php? </p>
  
  <p>From PHP i'll get todays date by <code>date("Y-m-d");</code> lets say <code>2012-02-22</code></p>
  
  <p>How i'll get a date after 3 months.... i.e <code>2012-05-22</code></p>
  
  <p><strong>EDIT:-</strong></p>
  
  <p>The issue is about different number of days in different months, feb have 28 days also and 29 in leap... odd months 31 and others 30... Is there any pre-built function in php which i can use to deal with this issue... ??</p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>With all responses i understood that it would be a problem:- </p>
  
  <p>In reference to <a href="https://stackoverflow.com/a/10275921/1182021">https://stackoverflow.com/a/10275921/1182021</a> [+1]</p>
  
  <p>So i think it would be better of writing a manual function for it... and i'll put it here as an answer... Thanks for everyone help and support..</p>
  
  <p><strong>ANSWER TO THIS QUESTION</strong></p>
  
  <p>We need to check all the conditions manually for accurate calculations... there is no inbuilt function for this in PHP.... <a href="https://stackoverflow.com/a/10280441/1182021">https://stackoverflow.com/a/10280441/1182021</a></p>