Q:

Get exact date from day of year (ex- 203/365)

I want to get 203rd day of 365 days(year 1992) to 21st of July 1992 
Like this, 
You input day of year 1992(ex- 203) you get output (21st July)
i tried :
Dim startDate As New Date(1992, 1, 1)
Dim offset As New TimeSpan(203, 0, 0, 0)

help me solve this.

A:

You can create a Date object for your starting date (1-Jan-1993) and then use the Date object's AddDays method, like this.
Dim startDate As New Date(1993, 1, 1)
Dim resultDate As Date = startDate.AddDays(202)

Notice that I only added 202 days, since 1-Jan is already the first day.
If you need to add a more advanced amount of time, which isn't an exact number of days, you can do that by adding a TimeSpan object to a Date object.  When you do that, it results in a new Date object, like this:
Dim startDate As New Date(1993, 1, 1)
Dim offset As New TimeSpan(202, 0, 0, 0)
Dim resultDate As Date = startDate + offset

