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

convert string to a date?

Status
Not open for further replies.

password99

Technical User
Jul 19, 2002
122
US
how do i convert string to a date?

what is the sql function and its arguments?
 
Does this work?

CONVERT(datetime,yourvariablename)

-VJ
 
You can cast it using CDate()

e.g.
select cdate(mystringdate) as mydatefield
from mytable
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top