Today one of a friend wanted to know how to find out if todays is Sunday/Friday/Monday etc or not (ofcourse thats from within SQL Server, or else his mom wud have told him that :) )..
so here is the query that I told him:
select DATENAME(dw , getDate())
you can pass "dw" or "weekday" as a first parameter to date name which specifies the part of date returned.
so a sample query will be
SELECT case when DATENAME(dw , getdate()) <> 'Sunday' then 'Its Not Sunday today' else 'Its Sunday today' end