+ Reply to Thread
Results 1 to 5 of 5

ListBox date format

  1. #1
    Registered User
    Join Date
    10-02-2006
    Posts
    6

    ListBox date format

    I have a listbox on a userform that returns a multicolom list of results including a date. The date is formatted on the worksheet as yyyy.mm.dd when the date is entered from a calender control it enters properly. My problem is when the search is done, the date is returned in the listbox as d/m/yy. Is there a way of formatting the date in the listbox to display as yyyy.mm.dd.

    thanks

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Can you post the code you used, or preferably, a .zip copy of the workbook?

  3. #3
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Its done like this:
    Please Login or Register  to view this content.
    Not all forums are the same - seek and you shall find

  4. #4
    Registered User
    Join Date
    10-02-2006
    Posts
    6
    Here is the code for the listbox results:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Ideally i need your workbook but try replacing this line:
    Please Login or Register  to view this content.
    With:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1