Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CONVERT() function
Message
From
08/02/2019 07:47:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01666022
Message ID:
01666097
Views:
32
>
>I know you don't like to chaise links. But if you just look into this thread on stackoverflow, it uses the separators:
>https://stackoverflow.com/questions/22477356/convert-datetime-to-string-yyyy-mm-dd

That is what I was thinking too, until a developer on a forum was asking a question claiming it was failing. I didn't believe him and he was right. The culprit was language setting (TURKISH namely). Without separators it worked and works under any MS SQL Server version\edition + date settings + language settings. It might be a single MS SQL Server version + TURKISH language setting that is affected only, so it is really a choice for you. To my experience, it always works without separators.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform