Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2008, 03:13 PM
Authorized User
 
Join Date: Mar 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default getting the same day of the week.

I'm putting together a form that I have to log on a weekly bases and I have no idea how to do this. I know what I want to do, but I just don't know how.

What I need is some code that give me every Sunday so I can use that as the week identifier.

Here's what I want to do. Let's say someone enters data in during the week. What I want is to get the start of the week, 2/24.

So I guess the question is, how do I get the 1st date (Sunday) of every week?

I hope I made sense.

Thanks.

 
Old February 26th, 2008, 06:13 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Have you asked Google? Always a good idea...

I entered 'asp find sunday date of week' which gives you http://www.google.com.au/search?hl=e...+of+week&meta=

The second listing (http://classicasp.aspfaq.com/date-ti...that-week.html) has exactly what you want

Wind is your friend
Matt
www.elitemarquees.com.au
 
Old February 27th, 2008, 12:31 PM
Authorized User
 
Join Date: Mar 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Matt,

I always check google 1st. Believe me, if I didn't you'd see so many posts here, it would make you head spin.

Thanks for the into. Then 2nd listing you posted was exactly what I needed.

 
Old February 27th, 2008, 12:45 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Quote:
quote:Originally posted by crabjoe
 Matt,

I always check google 1st. ... Then 2nd listing you posted was exactly what I needed.

Those two statements seem to contradict each other since the second link in Matt's post came from the SERP in his first link. :shrug: Glad you got your answer.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
DAY of the week wdepreter Excel VBA 3 February 7th, 2007 06:44 AM
Day of week finder mrjaygreene Classic ASP Basics 6 May 13th, 2006 04:43 PM
Conversion to 7 day week. kinouye BOOK: Beginning VB.NET Databases 0 December 3rd, 2005 03:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.