This depends on how many days in the month no?<BR>If your month is 31 days you could do:<BR><BR><% thedays=45<BR> ' Calculate days left over after dividing by days in month.<BR> remaindays=thedays mod 31 <BR> ' Subtract remaining days so months is divisable evenly and<BR> ' figure out number of months.<BR> nummonths= (thedays - remaindays)/31<BR> Response.Write("In " & thedays & " are " & nummonths & " and " & remaindays & " days.") %><BR><BR>Also if you want to find the difference of two dates you can use DateDiff. http://www.sloppycode.net/vbscript/?m=2538
Thanks peek that's exactly what I'm looking for! Can you take it one step further and show me how I would write out the year as well if it goes over 365 days? I tried doing it after looking at your code but it would end up giving me 2.25 years, xx months, xx days if I used like 850 days.