View Full Version : Date formatting (week ending - list box)


amrick
02-14-2008, 09:22 AM
Hi all,

Im building a form which has a list box that displays the date every of every Friday for the past 6 months or so.

Its for an Intranet, where users log their progress for the previous week.

How can I get the date of the previous Friday's that display in a list box?

Im a bit of a beginner so any straight forward help is much appreciated!

dan-cat
02-14-2008, 10:04 AM
YourDate.AddDays(-7)

amrick
02-23-2008, 05:22 AM
im using classic ASP?

how would i implement that? im a beginner so i'm not sure where to begin with this problem :S

dan-cat
02-25-2008, 07:11 AM
Oh no spaghetti code monster!! :p

Why don't you use asp.net so much better (and easier) ;) (if you're starting to code for the web you should really start with .net - honest - asp is being put to bed)

Anywhoos does this link (http://www.chrishardy.co.uk/asp/tutorials/dateadd.asp) help

Can you parse the date from your listbox to a date variable yet or do we have to start from there. :)