Posted on 2005-05-03
Last Modified: 2010-04-17

Does anybody know how to display milliseconds on a 24-hour datetime format without altering the computers regional settings?

Question by:LFMSupport
    LVL 13

    Expert Comment

    Hi Wilky
    Where? In the dos-box? in a log file? in a specific program / programming language? :)
    LVL 1

    Author Comment

    VB6, thought I was in that section sorry!
    LVL 13

    Accepted Solution

    Try something like this:
    Format(Now, "dd/MM/yyyy hh:mm:ss") & "." & Format((Timer - Int(Timer)) * 1000, "0")
    LVL 1

    Author Comment

    Timer already uses milliseconds so thats worked a treat.

    Thanks alot John!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    thread-safe code in c++ 2 58
    Fix45 challenge 15 66
    userCompare  challenge 3 53
    array11 challenge 16 40
    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now