Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CONVERT() function
Message
From
07/02/2019 16:25:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01666022
Message ID:
01666068
Views:
31
>I found the solution. Instead of using .ToShortDateString() on the ASP.NET side, I have to use a specific format:
>
>
>TargetDate.Date.ToString("yyyy-MM-dd HH:mm:ss");
>
>
>The above works for both the American date and the British Date.

This is the format I have been saying since the beginning :) So you had access to the code, good.

PS: Better use
TargetDate.Date.ToString("yyyyMMdd HH:mm:ss");
(In some SQL versions and language settings, fails otherwise)
Ç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