Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert from char to datetime
Message
From
10/01/2005 08:19:10
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00974367
Message ID:
00975615
Views:
20
>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

Previous
Reply
Map
View

Click here to load this message in the networking platform