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

Converting unix date

Status
Not open for further replies.

meldrape

Programmer
May 12, 2001
516
US
Hello,

I have a text file with three date fields in this format:
yymmdd

How would I go about converting these date formats to mm/dd/yyyy to insert into a SQL table?

Thanks in advance.

 
Nevermind, I used select CAST ( ENDDATE AS datetime) as ENDDATE from JobImportHeader.

It converts the date to mm/dd/yy but I really need mm/dd/yyyy. If anybody know how to do this, I would appreciate your input. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top