22 January, 2014
Roel van Lisdonk
0 Comments
1 category
If you want to convert a date to a string in the format "dd-mm-yyyy" in T-SQL, you can use the following code:
declare @Now date = '2014-01-22' select convert(varchar(10), @Now, 105)
Result
Tags: T-SQL
Category: Uncategorized
Related Posts
2020-08-13 Learned Today
18 August, 2020
Roel van Lisdonk
0 Comments
1 category
How to correctly add a foreign key in sql…
How to simply compare two tables on different SQL Server instances.
23 April, 2014
Roel van Lisdonk
0 Comments
1 category
I restored a backup of a database on a different…
Visual Studio 2017 – How to fix: Unable to start debugging on the web server.
8 March, 2017
Roel van Lisdonk
0 Comments
1 category
When I first started Visual Studio 2017 after a clean…