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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SqlServer: Date conversion

Status
Not open for further replies.

rpet

Programmer
Jun 5, 2000
87
0
0
DE
hi!<br><br>in my source table the date is stored in the char(8) format (yyyymmdd). i want to transfer this data to a target table of type &quot;datetime&quot;. can someone tell me how do perform this conversion? thank you.<br><br>-- ralf<br><br><br>
 
CAST or CONVERT are your function options.&nbsp;&nbsp;Both have a range of options (especially Convert), your best bet is to check the BOL (books on line) <p>Malcolm Wynden<br><a href=mailto:wynden@island.dot.net>wynden@island.dot.net</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top