title: How do I convert days into years and months in python?
body: <p>How do I convert days into years and months and days in python?
  for example: if someone were to be 5,538 days old. how can I display that through years and months and days like this : 15 years old 2 months and 1 day</p>
  <h1>this is to get user's input</h1>
  <pre><code>print &quot;Please enter your birthday&quot;
  bd_year = int(raw_input(&quot;Year: &quot;))
  bd_month = int(raw_input(&quot;Month: &quot;))
  bd_day = int(raw_input(&quot;Day: &quot;))
  
  from datetime import date
  now = date.today()
  
  birthdate = date(int(bd_year), int(bd_month), int(bd_day))
  age_in_days = now - birthdate
  
  print &quot;Your age is %s&quot; % age_in_days
  </code></pre>
  <h1>now I need to calculate the person's birthday in years and months and days</h1>