If a user of my system inputs a date how can I get my asp to return the day (i.e - Wednesday for today's date)<BR> Cheers<BR><BR>Pete
Please, take a look at ... <BR>http://www.devguru.com/technologies/vbscript/quickref/weekday.html
Easy - the VBScript function Weekday() takes a date argument returns a number between 1 and 7 indicating the day of the week. You can then plug this into the WeekdayName() function or use it as an array subscript to lookup the day name.<BR><BR>Dunc
WeekdayName(date,[firstdayofweek]) //first day of week can be 1 //for sunday 2 for monday etc....
WeekDayName((Weekday(Now()+6,1)))<BR>this is what i use to determine the day of week it is 6 days from today