Results 1 to 2 of 2

Thread: Format String to Date from Database when Binding to DataGrid

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    Montgomery, AL
    Posts
    10

    Format String to Date from Database when Binding to DataGrid

    I have a table in a sql db that stores the date as a string ex: 081905, I was wondering if there were an easy way to format the string to a date format "MM/DD/YY" when I bind it to a DataGrid so the display would be "MM/DD/YY".....

    Any suggestions....
    Thanks

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Re: Format String to Date from Database when Binding to DataGrid

    Use the String.Format function.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

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



Click Here to Expand Forum to Full Width