Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert datetime into varchar, keeping milliseconds? 1

Status
Not open for further replies.

JFoushee

Programmer
Oct 23, 2000
200
US
Is it possible to use a SELECT statement to Convert() a datetime column into a varchar column, and still preserve the time portion to include the seconds and milliseconds?
 
select actiondate, convert(nvarchar, actiondate, 121) as strdate from contact
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top