CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Posts
    72

    date problem in excel

    in my excel spreadsheet i used format of dd/mmm
    and internally excel has stored it as mm/dd/yyyy.

    i then used this column to populate the combobox in vb. the combobox gets populated with the internal format of mm/dd/yyyy.

    but when i read the whole column back to display it in a listbox, i get error.
    i guess the error is due to the difference in formats. can anyone help suggesting anything please?????


  2. #2
    Join Date
    Dec 1999
    Location
    Malaysia
    Posts
    56

    Re: date problem in excel

    Hi,
    Correct me if I'm wrong here, but most of Mr Bill's software follow the Windows short date format. So check it out first, and I do believe that VB is running on the short date format.
    I've used a reporting application which was built with VB, and we had another application interfacing with this, which had a date format of "yyyy/mm/dd" while the program had the format "dd/mm/yyyy". When the application was executed to print out the report, we found that the date field was missing, so, we changed the short date format to follow "yyyy/mm/dd" and the problem was solved!!
    Check it out... hope this helps

    ____________________________________
    The VB Bugs in my Life...

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

Featured