Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function for sortable date like VFP DTOS()
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01100962
Message ID:
01100996
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Is there a function that will create a sortable date string like VFP's DTOS(). It produces a string in the format 'YYYYMMDD'?

The CONVERT() function allows to control datetime conversion to a string with 3rd parameter
SELECT CONVERT(char(8), getdate(), 112)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform