Results 1 to 2 of 2

Thread: Date Format

  1. #1
    Join Date
    Apr 2005
    North Carolina

    Unanswered: Date Format

    When I use this script:

    Convert(VarChar(12),GetDate(),112) as '112'

    I get a date in a format of YYMMDD.

    I need the date in the format of MMDDYY. How can I do this?
    Amber Hardee, DBA

  2. #2
    Join Date
    Feb 2006
    you could use the Year(x), Month(x) and Day(x) to extracted from the YYYMMDD and concatenate using &

Posting Permissions

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