Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date select
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
01048697
Message ID:
01048903
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
>I was thinking that it may be something like that, do you know if i can use something like get_date_info_only(datetime_field)?

The best approach IMO, is to stick to the universal format YYYYMMDD HH:MM for datetimes in SQL Server. If you're sending DateTime parameters you don't have to worry about it, but if you're building strings, use it.

Also, while you don't need to add anything for FROM dates in queries, you can add 23:59 to TO dates, or just internally add a day and compare with < (not <=).

Hope this helps,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform