Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
pentahari
Starting Member
26 Posts |
Posted - 2008-09-05 : 01:48:04
|
| how to get the days in month using query |
|
|
sunil
Constraint Violating Yak Guru
282 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-09-07 : 00:12:51
|
| SELECT * FROM YourTable WHERE datefield > DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)AND datefield < DATEADD(mm,DATEDIFF(mm,0,GETDATE())+1,0) |
 |
|
|
|
|
|