Forum Moderators: open

Message Too Old, No Replies

Convert a Integer into Date

         

shaan1980

6:42 pm on Apr 7, 2006 (gmt 0)

10+ Year Member



I want to select a column which is in the following integer format yyyymmdd into the following date format mm/dd/yyyy

I tried the convert function but that yeilded an error

Can you please advise how I could do this

txbakers

6:50 pm on Apr 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



what language are you using and what database are you using.

You might be able to use some type of DATE_FORMAT command in the SQL to get it that way.

OR you can do the coding in your language. I've done it both ways.

shaan1980

6:53 pm on Apr 7, 2006 (gmt 0)

10+ Year Member



i'm using SQL on Sybase