Output Date field to Text field

  • I'm trying to update a text field with the value in a date field but without any slashes appearing in the text field.

    When I try this as the update statement convert(varchar(10),transaction_date,101), I get results like:

    03/20/2008

    What I really want are results like:

    03202008

    Is there an easy way to do that?

    Thanks!

    Roger

  • Use REPLACE to remove the /

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

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