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

How to convert numeric data type to date type?

Status
Not open for further replies.

ema15

Programmer
Aug 3, 2001
11
US
Hello,
I am trying to create a view in MS SQL Server 2000 with "DeliveryDate" field which data type is an Integer Float in this format: "YYYYMMDD".

Does anyone know how I can Convert this field to a Date data type?


 

You should post this question in the SQL Server forum rather than the Access Queries forum. Here is one way to convert a numeric value to a datetime value. It involves converting the numeric to string or character data and then to datetime.

convert(datetime, str(<floatval>)) Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Hi Terry,
I used exact same formula and it did work, you saved my day!!! :)
Thank YOU VERY MUCH!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top