Consulting

Results 1 to 2 of 2

Thread: Solved: date format in vcarchar

  1. #1
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location

    Solved: date format in vcarchar

    i have stored date in var char i need to order by date ,month, then order by year..i need sql query for this

    22/01/2008
    01/02/2006
    05/12/2007

  2. #2
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location
    [VBA]
    order by month(convert(datetime,'string', 105)) desc,day(convert(datetime,'string', 105)) desc,year(convert(datetime,'string', 105))desc
    [/VBA]

Posting Permissions

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