string st = '01/2012' (MM/yyyy)
I want to get the data between 01/01/2012 and 31/01/2012
How to create a start date and end date according to month and year format?
For Example
st = 02/2012
Select * from table where dates between 01/02/2012 and 29/02/2012
How to make a query for adding start and end date of the month?
dates
in your SQL Server table??? – ChyackYYYYMMDD
(orYYYY-MM-DDTHH:MM:SS
with time) - this will work for any language/regional settings for your SQL Server - anything else is dependent on those settings and might break if those settings are wrong.... – Chyack