+ Reply to Thread
Results 1 to 2 of 2

Convert an Excel date to a date of my format in VBA

  1. #1
    Sunnous
    Guest

    Convert an Excel date to a date of my format in VBA

    Hello,

    I would be grateful if someone was able to help me with a date conversion
    issue.

    I want to be able to convert an Excel date to date of my format. But
    without sending or displaying anything in the spreadsheet. Once the date is
    converted I want to display it in a ListView and will not be displayed within
    spreadsheet.

    So I would appreciate your help on this matter, I have looked on the web and
    looked at VBA functions but no joy.

    Many Thanks

    Sunnous

  2. #2
    Tom Ogilvy
    Guest

    Re: Convert an Excel date to a date of my format in VBA

    ? format(12345,"mmm dd, yyyy")
    Oct 18, 1933
    ? clng(dateSerial(2005,11,15))
    38671

    Dates are stored as the number of dates from a base date. In windows 1900.
    In Mac 1904 are the defaults.

    --
    Regards,
    Tom Ogilvy




    "Sunnous" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    >
    > I would be grateful if someone was able to help me with a date conversion
    > issue.
    >
    > I want to be able to convert an Excel date to date of my format. But
    > without sending or displaying anything in the spreadsheet. Once the date

    is
    > converted I want to display it in a ListView and will not be displayed

    within
    > spreadsheet.
    >
    > So I would appreciate your help on this matter, I have looked on the web

    and
    > looked at VBA functions but no joy.
    >
    > Many Thanks
    >
    > Sunnous




+ 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