Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Convert text to date

Author  Topic 

1sabine8
Posting Yak Master

130 Posts

Posted - 2010-07-29 : 04:56:20
Hi,
I have the text 20100331 taken form the date parameter.
How can i convert it to a date value?
Thanks in advance

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-07-29 : 04:58:46
In T-SQL?
CONVERT(DATE,@your_parameter)


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -