Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to make it in visual basic 6.0 or Visual studio 2010
(input number and get month and day )
Posted
Comments
Sergey Alexandrovich Kryukov 16-Jan-12 12:45pm    
VB6 or VS 2010? How is that?
--SA

Try:
VB
Dim dt As New DateTime(2001, 1, 1)
dt = dt.AddDays(145)
Console.WriteLine(dt.ToString("M"))

You probably want to use the current year, and you probably want to do some error checking.
 
Share this answer
 
You can use TryParse() method to convert string to date and time

C#
DateTime.TryParse(string,out DateTime)

Check the link below

http://msdn.microsoft.com/en-us/library/ch92fbc1.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900