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

Convertins strings to dates

Status
Not open for further replies.

DebbieChapman

Programmer
May 25, 2003
26
GB
How can I convert a string field containing a date into a datetime field

the string field will always be in dd/mm/yy hh:mm:ss format
 
convert(datetime, @str, 103)

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
I retract,
Didn't notice the brit time first time around.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top