198762/convert-date-from-dd-mm-yyyy-to-yyyy-mm-dd-in-sql-server
Given date:
DECLARE @Date1 VARCHAR(50) = '30-01-2015'
I want to convert it into the 2015-01-30.
Try this:
DECLARE @Date1 VARCHAR(50) = '30-01-2015' SELECT CONVERT(VARCHAR(10), CONVERT(date, @Date1, 105), 23)
I hope this helps you.
Using convert() and style 106, you can ...READ MORE
i am using in angular its work ...READ MORE
To modify the format of a date ...READ MORE
My date of birth change READ MORE
To obtain the year from the given ...READ MORE
You can use the PIVOT function to ...READ MORE
Timestamp is a synonym for rowversion, according ...READ MORE
With Microsoft Sql Server: -- -- Create test case -- DECLARE ...READ MORE
There's problem in all of them and ...READ MORE
The Date object will do what you ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.