IIS ASP - Weekend dates

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > February 2007 > Weekend dates





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Weekend dates
Joey Martin

2007-02-21, 1:18 pm

I have a sql database and ASP pages.

How do I find out the DATES of THIS WEEKEND (fri-sun).

If today is Tuesday, I want to show information posted for THIS WEEKEND.

My table has a field called THEDATE which is what we need to search and
in the format MM/DD/YYYY.

Thanks!




*** Sent via Developersdex http://www.codecomments.com ***
Bob Barrows [MVP]

2007-02-21, 1:18 pm

Joey Martin wrote:
> I have a sql database and ASP pages.
>
> How do I find out the DATES of THIS WEEKEND (fri-sun).
>
> If today is Tuesday, I want to show information posted for THIS
> WEEKEND.
>
> My table has a field called THEDATE which is what we need to search
> and in the format MM/DD/YYYY.
>
> Thanks!
>

What is the datatype of THEDATE? if it's a datetime field, then the
format is irrelevant.
If it's datetime, are you storing time as well as date in the field ?

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Dave Anderson

2007-02-22, 1:23 am

"Joey Martin" wrote:
> How do I find out the DATES of THIS WEEKEND (fri-sun).
>
> If today is Tuesday, I want to show information posted for THIS
> WEEKEND.
>
> My table has a field called THEDATE which is what we need to
> search and in the format MM/DD/YYYY.


What does "this weekend" mean? The coming weekend? Specifically, when does
it transition to the next one? On Saturday? On Monday?

Also, do you want to compute this in the database or in your web script? In
either case, what is the environment (ASP: JScript/VBScript, database: SQL
Server/Oracle/MySQL/MS Access)?




--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com