+ Reply to Thread
Results 1 to 3 of 3

Convert Date/Time array to a integer array

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    Australia
    MS-Off Ver
    2007/2013/2016
    Posts
    14

    Convert Date/Time array to a integer array

    Hi All,

    I can't find any information on the net or this forum to find out how to do this..

    I have an array: d() as Date
    It has a whole pile of different times stored in it. eg. 12:01am, 5:21pm etc.
    I need to convert this to seconds and store it in an array so that I can dump the data onto a worksheet.

    Any ideas on how I go about achieving this?


    Regards,

    bradja

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Convert Date/Time array to a integer array

    attach please a sample file with data and desired result
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    06-14-2013
    Location
    Australia
    MS-Off Ver
    2007/2013/2016
    Posts
    14

    Re: Convert Date/Time array to a integer array

    Hi patel45 thank you for your response.
    Doing some testing myself I was able to fix this.

    I forgot that "time" is stored as a fraction of a 24-hour day.
    So I just amended the time array like this:

    Please Login or Register  to view this content.
    I then dumped this data into the column and it achieved the result I was after =]

+ 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