Results 1 to 2 of 2

Thread: Cast function

  1. #1
    Join Date
    Apr 2009
    Location
    Nagpur
    Posts
    4

    Smile Unanswered: Cast function

    Hi

    I am converting numeric value in date
    dt=39904
    select Cast(Dt as datetime) from t1

    retrun value is 03/04/2009

    but actual value is 01/04/2009

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Code:
    select Cast((Dt - 2) as datetime) from t1
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •