Results 1 to 3 of 3
  1. #1
    Rustin788 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    47

    Convert 8 Digits to Time

    Hey, We have a timestamp in our system and I've been unsuccessful in converting it to an actual time. This is from 1/1/2023 21462959 and this one is from 1/2/23 15520044. Appreciate any help.




    ***I knew this was familiar. I asked the same question in 2018. Apologies.

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    You did - here https://www.accessforums.net/showthr...895#post413895 for any interested parties
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Code:
    function ParseTime(pvDateTime)
    dim vVal, h,n,s
    
    vVal = right(pvDateTime,8)
    h = left(vVal,2)
    n = mid(vVal,3,2)
    s = mid(vVal,5,2)
    
    ParseTime = h & ":" & n & ":" & s
    end function

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 12
    Last Post: 04-15-2019, 07:28 PM
  2. Replies: 7
    Last Post: 12-23-2015, 01:02 PM
  3. How to convert time into speed?
    By Hello1 in forum Access
    Replies: 3
    Last Post: 12-21-2015, 12:53 PM
  4. Convert Number to Date/Time
    By Jerseynjphillypa in forum Queries
    Replies: 10
    Last Post: 06-13-2012, 12:33 PM
  5. Convert local time to UTC
    By zapper222 in forum Programming
    Replies: 0
    Last Post: 08-01-2010, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums