Converting Float into Date

  • Hi Guys,

    I am trying to convert transaction Date to smalldatetime but no luck. Can any one please help me out with his.

    I need a query to convert transaction date float to smalltimedate.

    tblfuelCost

    Fkey TotalAmountTransactionDateVehicleRego FuelPrice

    12057 20090706 AB155 1.20

    Thanks,

    Rahul

  • [font="Verdana"]Try:

    convert(datetime, cast(TransactionDate as varchar(8)), 112)

    [/font]

  • Thanks Very Much 🙂

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply