Results 1 to 2 of 2

Thread: text to date conversion

  1. #1
    Jason Guest

    text to date conversion


    I have a very large table with about 15 "date" fields that were imported as text from a flatfile. I need to convert these fields to dates. The format that they are currently in are like this "12/31/99".

    What is the easiest way to convert these fields to dates?

    Thanks for any help
    Jason Fitch

  2. #2
    mohan Guest

    text to date conversion (reply)


    use convert function
    eg: convert(datetime ,@text)

    where @text your datefield

    hope this solve your problem
    by
    mohan
    ------------
    Jason at 12/13/00 11:26:49 AM


    I have a very large table with about 15 "date" fields that were imported as text from a flatfile. I need to convert these fields to dates. The format that they are currently in are like this "12/31/99".

    What is the easiest way to convert these fields to dates?

    Thanks for any help
    Jason Fitch

Posting Permissions

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