Results 1 to 3 of 3

Thread: Schema.ini DateTime DGV Date or String ?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    Schema.ini DateTime DGV Date or String ?

    I am importing a .txt file to a gatagridview and writing out a Schema.ini file

    My columns that contains a date value is empty in my DGV when i use the:
    DateTime in my .ini file

    If I set it to Char then my date is populated

    Does this mean my dates in the text file are not really dates but strings ??

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: Schema.ini DateTime DGV Date or String ?

    text files are strings, so your dates in your file are string representations of a datetime

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    Re: Schema.ini DateTime DGV Date or String ?

    Thanks Paul that would make sense

    I added the DateTimeFormat= yyyy-mm-dd line in my schema file and it works

    I thought I could set the format it came in and was doing dd-mm-yyyy

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