I am working a program where a certain variable is determined by what date the user is selecting. If the date is a weekday, then my variable is one thing, if it's the weekend, then its another value.
I know that in MS Access there is a function to return a value of 1-7 depending on the day of the week. Is there a way to do the same thing, preferably in ASP so that I can perform this function without running to the database first. But if not, is there a way to do it in SQL Server 2000?
Any help you can provide would be greatly appreciated.
Thanks in advance guys.
I know that in MS Access there is a function to return a value of 1-7 depending on the day of the week. Is there a way to do the same thing, preferably in ASP so that I can perform this function without running to the database first. But if not, is there a way to do it in SQL Server 2000?
Any help you can provide would be greatly appreciated.
Thanks in advance guys.