Home All Groups Group Topic Archive Search About
Author
19 Jun 2006 3:19 PM
Elioth
Hi,

I need to know how I can convert a Julian Date of Year to Date.

Example:

VB has the funcion DayOfYear and it return a 170 if the date is June 19, 2006

I want enter a Day of year (170) and convert it to a Date (June 19, 2006)


Thanks
Elioth Collazo

Author
19 Jun 2006 3:29 PM
Herfried K. Wagner [MVP]
"Elioth" <Eli***@discussions.microsoft.com> schrieb:
> I want enter a Day of year (170) and convert it to a Date (June 19, 2006)

\\\
Dim d As Date = #12/31/2005#.AddDays(170)
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>