title: Get Year/Month/Day separately from MySQL datetime in PHP
body: <p>I store user register date and time as datetime in MySQL. now to do some process with that date i need to get year, month and day separately to work with.</p>
  
  <p>for example:</p>
  
  <p>2015-07-30 19:20:34</p>
  
  <p>now I want 2015, how do I do that in PHP?</p>