Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using CONVERT() function
Message
De
07/02/2019 16:25:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
01666022
Message ID:
01666068
Vues:
32
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform