|
-
Jul 22nd, 2008, 05:09 PM
#1
[RESOLVED] How to determine if year is current
Hi,
how do i filter the dates in the table using a query that will only display dates corresonding to the current year...
Assuming that the table has dates from 2000-2008..When I run the program, it will display the all dates in the gridview with year 2008...
Whats the date function to do this?
Whats a function to display if the month is also current?
using sql server 2005..
Table name:
Calendar
fields:
CalendarDate (datetime)
CalendarIsCurrentDate (bit)
CalendarWorkingDayType (varchar(50))
Utilized(bit)
thnx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|