199888/return-date-as-ddmmyyyy-in-sql-server
CONVERT style 103 is dd/mm/yyyy. Then use the REPLACE function to eliminate the slashes.
SELECT REPLACE(CONVERT(CHAR(10), [MyDateTime], 103), '/', '')
I hope this helps you.
There's problem in all of them and ...READ MORE
Using convert() and style 106, you can ...READ MORE
Given date: DECLARE @Date1 VARCHAR(50) = '30-01-2015' I want ...READ MORE
Is there a method to use SQL ...READ MORE
I tried this: SELECT * FROM dbo.March2010 A WHERE ...READ MORE
To modify the format of a date ...READ MORE
Two forms of CASE statements are getting ...READ MORE
In SQL Server 2005, I have a ...READ MORE
Try this... SELECT AlarmEventTransactionTableTable.TxnID, ...READ MORE
How do I query the DateTime database ...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.