Click here to Skip to main content
13,198,075 members (81,148 online)
Click here to Skip to main content

Tagged as


Posted 28 Dec 2012

datepart function in Linq

, 28 Dec 2012
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 28-Dec-12 22:59 Available __TR__
Updates in content. 148 changes had been made.
1 No 28-Dec-12 20: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...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171020.1 | Last Updated 29 Dec 2012
Article Copyright 2012 by __TR__
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid