"McKirahan" wrote in message news:9o********************@comcast.com...
: "JoeM" wrote in message
: news:e$**************@TK2MSFTNGP14.phx.gbl...
: > I know there is a function that shows: <% = date %>, which gives:
: > 2/17/2006,
: > is there any way to show the day of year? Example: Today is 2/17/06,
but
: > the 48th day of the year. Is there any call to get the 48th day?
:
: You Subject says "Day Of Week";
: you Message says "Day Of Year"!
:
: In either case, look at DatePart()
:
: For "Day Of Year" -- DatePart("y",Date)
That will get the current date of the year. To get any other, you can do
this:
dim y, m, d, doy
y = 2000
m = 1
d = 15
doy = DatePart("y", DateSerial(y, m, d))
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp