I guess you are probably looking for a solution to find the birthday, and you can do so by adding the values of years, months and days (in a negative form as to subtract them).
I used the following C# code to get my date of birth, it writes it perfectly.
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(
DateTime.Now.AddYears(-19).AddMonths(-8).AddDays(9)
.ToString("MMMM dd, yyyy on dddd")
);
}
}
Since you want to get it in VB, so the code would be...
Public Class Program
Public Shared Sub Main()
Console.WriteLine(
DateTime.Now.AddYears(-19)
.AddMonths(-8).AddDays(9)
.ToString("MMMM dd, yyyy on dddd")
)
End Sub
End Class
Remember that you are to replace the constant added values as variables. So your code might be like this,
Public Class Program
Public Shared Sub Main()
Dim year As Integer, month As Integer, day As Integer
Console.WriteLine(
DateTime.Now.AddYears(year)
.AddMonths(month).AddDays(day)
.ToString("MMMM dd, yyyy on dddd")
)
End Sub
End Class
Then pass the values as negative or positive depending on current date or month. It would give you with the required result that you want to get.