Ask a Question related to ASP Database, Design and Development.
-
Dan Matthews #1
Using WHERE statement to display date range
I have a multi-year events database that is displayed on the web. But
I also would like to display events from that database one week at a
time. Does anyone know how to do that? Thanks in advance.
If you have any questions, please ask.
Dan Matthews, MCP
Technology Manager
Green Hall, University of Kansas
(785) 864-9267
[email]dmatthews@ku.edu[/email]
[url]http://www.people.ku.edu/~dmatthew/[/url]
Dan Matthews Guest
-
Date Range Validation
Hello; CL_FRST (08/10/2004) and CL_LST (05/24/2005) holds the beginning and ending date of school calendar which is also prepopulated for every... -
Date Range
I?ve got a routine that figure out 30 days from today?s date, but what I want to do is resolve a start date and an end date where the start date is... -
Date Range Search
I have a calendar search from where an option is to search between dates and riight now it never finds anything. Do I need to do a format... -
Convert date/time to date in SQL Server 2000 statement
Can this be done? tia -
date range query
Hi I just need to pull up a query which will bring up orders between a specified date range say jan 2003/ july 2002 and from this I have to pull up... -
Chris Hohmann #2
Re: Using WHERE statement to display date range
"Dan Matthews" <dmatthews@ku.edu> wrote in message
news:eed3ba41.0308010809.2121cff9@posting.google.c om...Database? Version? Table Structure?> I have a multi-year events database that is displayed on the web. But
> I also would like to display events from that database one week at a
> time. Does anyone know how to do that? Thanks in advance.
>
> If you have any questions, please ask.
>
> Dan Matthews, MCP
> Technology Manager
> Green Hall, University of Kansas
> (785) 864-9267
> [email]dmatthews@ku.edu[/email]
> [url]http://www.people.ku.edu/~dmatthew/[/url]
Chris Hohmann Guest
-
Manohar Kamath [MVP] #3
Re: Using WHERE statement to display date range
In Access, the date is delimited by #. In SQL Server, just enclose the date
in 's.
WHERE myDate=#8/1/2003#
WHERE myDate='8/1/2003'
--
Manohar Kamath
Editor, .netBooks
[url]www.dotnetbooks.com[/url]
"Dan Matthews" <dmatthews@ku.edu> wrote in message
news:eed3ba41.0308010809.2121cff9@posting.google.c om...> I have a multi-year events database that is displayed on the web. But
> I also would like to display events from that database one week at a
> time. Does anyone know how to do that? Thanks in advance.
>
> If you have any questions, please ask.
>
> Dan Matthews, MCP
> Technology Manager
> Green Hall, University of Kansas
> (785) 864-9267
> [email]dmatthews@ku.edu[/email]
> [url]http://www.people.ku.edu/~dmatthew/[/url]
Manohar Kamath [MVP] Guest
-
Dan Matthews #4
Re: Using WHERE statement to display date range
Thanks for the responses!
I was looking for a syntax clarification and I eventually came up with:
....WHERE (Events.StartDate >= Date() AND Events.StartDate <= Date() + 7) ORDER BY...
and that worked. Again, thanks for the responses!
If you have any questions, please ask.
Dan Matthews, MCP
Technology Manager
Green Hall, University of Kansas
(785) 864-9267
[email]dmatthews@ku.edu[/email]
[url]http://www.people.ku.edu/~dmatthew/[/url]
"Manohar Kamath [MVP]" <mkamath@TAKETHISOUTkamath.com> wrote in message news:<eJJfFoLWDHA.388@TK2MSFTNGP10.phx.gbl>...> In Access, the date is delimited by #. In SQL Server, just enclose the date
> in 's.
>
> WHERE myDate=#8/1/2003#
>
> WHERE myDate='8/1/2003'
>
> --
> Manohar Kamath
> Editor, .netBooks
> [url]www.dotnetbooks.com[/url]
>
>
> "Dan Matthews" <dmatthews@ku.edu> wrote in message
> news:eed3ba41.0308010809.2121cff9@posting.google.c om...> > I have a multi-year events database that is displayed on the web. But
> > I also would like to display events from that database one week at a
> > time. Does anyone know how to do that? Thanks in advance.
> >
> > If you have any questions, please ask.
> >
> > Dan Matthews, MCP
> > Technology Manager
> > Green Hall, University of Kansas
> > (785) 864-9267
> > [email]dmatthews@ku.edu[/email]
> > [url]http://www.people.ku.edu/~dmatthew/[/url]Dan Matthews Guest



Reply With Quote

