Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

datepart function in Linq

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
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

| Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 29 Dec 2012
Article Copyright 2012 by __TR__
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid