+ Reply to Thread
Results 1 to 2 of 2

Displaying date and time format in Listbox

  1. #1
    Forum Contributor
    Join Date
    07-22-2012
    Location
    Spain
    MS-Off Ver
    Excel 2008
    Posts
    304

    Displaying date and time format in Listbox

    Hi,

    The code bellow displays in my Listbox, 2 columns with the date and time from a variable range.


    Please Login or Register  to view this content.

    Everything code runs ok, the only thing is that the values displayed in my listbox does not have the correct format. The date appears as "mm/dd/yyy" and the time as a number instead of "hh:mm".

    Does someone know how to display it properly?

    Any help would be much appreciated. Thanks!

    Kind regards,

  2. #2
    Forum Contributor
    Join Date
    07-22-2012
    Location
    Spain
    MS-Off Ver
    Excel 2008
    Posts
    304

    Re: Displaying date and time format in Listbox

    Hi,

    Problem solved! Was quite easy actually, only formatting the cell as "Text" where the information was stored.

    Regards!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 06-23-2010, 04:24 PM
  2. displaying date in correct format within formula
    By tryer in forum Excel General
    Replies: 1
    Last Post: 08-06-2009, 01:27 PM
  3. ListBox date format
    By brainfreez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2008, 05:29 PM
  4. [SOLVED] Displaying Unix time as date and time
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 05-30-2006, 05:35 PM
  5. Displaying date/time!
    By Preet in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2005, 06:17 AM

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