Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date Time Format
Message
 
 
À
30/01/2003 12:00:44
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00747230
Message ID:
00747236
Vues:
13
You can use CONVER() function.
SELECT CONVERT(char(5), getdate(),108)
>HI,
>
>I´m trying to do a query with a field datatime type, i would like to format the result to the follow mask '10:00'.
>
>I tried to use DatePart function, but i only can retrieve the Hour.
>
>i´m using the follow SQL Expression:
>SELECT clientesPortas.descricao, DATENAME( hour , fluxo.dataHora)
>From clientesPortas.
>
>how can i do it?
>
>
>thanks
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform