date conversion
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
Hello! I have a little problem: Example: if I have 01/06/2003 and I want to add x months (example 3 months) and I want to obtain 01/09/2003 or to add days or years. How I do this thing in Visual Basic .NET 2003? Or how to convert the date to days and then to reconvert to date. Please help me! Sorry for my english! Thank you!
-
Hello! I have a little problem: Example: if I have 01/06/2003 and I want to add x months (example 3 months) and I want to obtain 01/09/2003 or to add days or years. How I do this thing in Visual Basic .NET 2003? Or how to convert the date to days and then to reconvert to date. Please help me! Sorry for my english! Thank you!
Try this: DateTime dt = DateTime.Parse("11/06/2003"); string dts = dt.AddYears(3).ToString();