+ Reply to Thread
Results 1 to 4 of 4

Converting a number to Date and Time

  1. #1
    Registered User
    Join Date
    09-18-2007
    Posts
    14

    Converting a number to Date and Time

    Hi

    I have a Time_Col which seem to sort an interger in the following format

    931897380
    931897440
    931897500
    931897560
    931897620
    931897680
    931897740

    There is 60 between each one, is there a way I can convert this number into a date and time which I assume it is but not sure how far back it goes or starts from

    Many Thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Converting a number to Date and Time

    It will be hard to convert to an accurate date time value if you don't know the starting point (ie date time at 0)

    If you want to convert the integer to "any date time" value then assuming the values represent seconds - divide each by 86400 and format as Date.

    If you want to alter originals directly type 86400 into a blank cell, copy it, highlight originals & apply paste special -> operation: divide

  3. #3
    Registered User
    Join Date
    09-18-2007
    Posts
    14

    Re: Converting a number to Date and Time

    Hi

    thnaks for the help and it seems to have made a different to the Date and Time part

    25/07/1929 23:52:00
    25/07/1929 23:53:00
    25/07/1929 23:54:00
    25/07/1929 23:55:00
    25/07/1929 23:56:00
    25/07/1929 23:57:00
    25/07/1929 23:58:00
    25/07/1929 23:59:00
    26/07/1929 00:00:00
    26/07/1929 00:01:00
    26/07/1929 00:02:00
    26/07/1929 00:03:00
    26/07/1929 00:04:00

    But it does look like the date is out obviously out of sync is there any way I could find out or make the date current ?

    Thanks

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Converting a number to Date and Time

    I really don't understand the question I'm afraid... as you said you don't know what the start date should be.

    Perhaps you could outline the "desired" results for your sample values.

+ 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