Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert from char to datetime
Message
De
10/01/2005 08:19:10
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00974367
Message ID:
00975615
Vues:
21
>Hi All,
>
>Can anyone help me with the conversion of '20041223' string to datetime data type in the following format 12/31/2004 ?
>
>TIA,
>Daniel M.

Hi Daniel,

T-SQL:
--110 is dd/mm/yyyy
convert(datetime, '20041223', 110)
Magnus Nordin
VFP MCP

"We have tested the GUI on 5-year olds. Why? Beacuse they aren't braindead!"
Michael Spindler, Apple

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform