Click here to Skip to main content
11,813,974 members (63,121 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

datepart function in Linq

, 28 Dec 2012 CPOL 0
I am assuming that you want to retrieve all the records where date of birth is on Jan 2012 or Feb 2012. If that's the case you can use DATEPART[^] to filter your rows.trySELECT COUNT(*) AS TotalRows FROM DOBWHERE (DATEPART(Month,dateOfBirth) = 1 OR DATEPART(Month,dateOfBirth) = 2) AND...



Compare Revision Minor Date Status Editor
3 - publicly available No 29-Dec-12 4:59 Available __TR__
Updates in content. 148 changes had been made.
1 No 29-Dec-12 2:42 Available __TR__


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
India India
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151002.1 | Last Updated 29 Dec 2012
Article Copyright 2012 by __TR__
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid