Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to give a date manually as ModifiedOn

$
0
0

Hey all,

I want to give a date example: 3.September.2013 as modifiedOn. I can give day and year as follows. I try all this:

MONTH('September'), MONTH(September), MONTH("September"), MONTH(9), MONTH('9'), MONTH('09') ve MONTH(09)

....	
        WHERE (YEAR(A.ModifiedOn) = YEAR('2010')) 
	AND (MONTH(A.ModifiedOn) = MONTH(September)) 
	AND (DAY(A.ModifiedOn) = DAY(3))
	AND A.Status_new<>A.Status_old
)A
 If i compile that gives me for Month error. How can i give the Month manually September in sql as ModifiedOn?


Viewing all articles
Browse latest Browse all 23857

Trending Articles