Re: DayLastAccessed - site
- From: NAT <NAT@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Dec 2007 12:58:00 -0800
John,
I beleive there has to be a catch here...since I have a site whose
DayLastAccessed value is '-25738'. When I use DATEADD(d, 25738, '01/01/1899')
, I don't get today's date. Since I accessed the site today, the dateadd must
return today's date.Please advice.
"John Timney (MVP)" wrote:
According to the documentation that specific field is a smallint (integer).
value that specifies the last day the site was accessed as the number of
days since January 1, 1899. So, its a counter field and can be converted to
a c# system.int16. If you need a date, you'll need to use the adddays
method to add that counter to jan 1,1899.
Regards
John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"NAT" <NAT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D9047559-870D-427B-A5AC-A4FBBF73D8B5@xxxxxxxxxxxxxxxx
Hi,
I am trying to get the list of all webs/sites, that have been
viewed/accessd
in the past 6 months. How can I acheive that using ad hoc SQL queries. I
know
using SQL query may not be recommendable by MS. But how can I generate
such
report. I see that there is a column named 'DayLastAccessed' in Webs table
in
SP. But I don't know how to read/interpret that column value format.
Please
advice.
- References:
- Re: DayLastAccessed - site
- From: John Timney \(MVP\)
- Re: DayLastAccessed - site
- Prev by Date: Re: DayLastAccessed - site
- Next by Date: RE: newbie - lists vs. database
- Previous by thread: Re: DayLastAccessed - site
- Index(es):
Relevant Pages
|
Loading