0

I am using this

SELECT CONVERT(INT(4), DateOfDeposit, 100) FROM ABC 

It gives the months like jan, feb but i want the no. representation like 1 for jan,2 for feb. How?

1 Answer 1

3
SELECT Month(DateOfDeposit) FROM ABC 

http://technet.microsoft.com/en-us/library/ms187813%28v=sql.100%29.aspx

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.