Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetDate()
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
GetDate()
Divers
Thread ID:
00847612
Message ID:
00847612
Vues:
63
Is there a better way to get the current date without a time than this?

dateadd(ms, datepart(ms, getdate())*-1, dateadd(ss, datepart(ss, getdate())*-1, dateadd(mi, datepart(mi, getdate())*-1, dateadd(hh,datepart(hh, getdate())*-1, getdate())))) - 1
Thanx,
Bill Elvin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform