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 nvarchar data to datetime

Status
Not open for further replies.

debbiepy

MIS
Jan 19, 2005
43
US
I get two differ data files from our source with dates in these two types of format

yyyymmdd ddd, mmm dd, yyyy

20050215 Sun, Feb 12, 2005

I get in a *.csv or txt file and then import it into our sql server database as an nvarchar field (cuz it would not import as a date field). I use EMS MS SQL Manager pro to import the data. I then want to use these as a date field in Crystal Reports. How can I do this so I can sort properly by date?
 
Try Date({your.field}). It mostly works for converting text to a true date. Display the result and see what you get.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top