I have calculate age in view using something like this...
For example I have this in view:
<dt>
Age
</dt>
<dd>
@(DateTime.Now - this.Model.dateofbirth)
</dd>
but the result shows it to me in days, I want age in years. Thanks in advance!!!