Hi all,
How to create the first day of the month in given below query using sql server.
i have done the below query,
My query is:
SELECT DATEADD(MM,-12,CONVERT(VARCHAR,GETDATE(),101))
the above query output is = 2015-04-27
but Expected Output is = 2015-04-01
please drop me a solution for this.
thanks in advance.