Results 1 to 4 of 4

Thread: Convert seconds to HH:MM:SS

  1. #1
    Join Date
    Apr 2008
    Posts
    53

    Convert seconds to HH:MM:SS

    Hi,

    One of the field in my report have displayed value in seconds. I want it to convert in new field as HH:MMS. Is this possible. Can someone help me out?

    Is there any idea for this?

  2. #2
    Join Date
    Aug 2008
    Posts
    53

    Re: Convert seconds to HH:MM:SS

    dateadd(second, [YourSeconds], [YourBaseDate])

  3. #3
    Join Date
    Oct 2008
    Posts
    93

    Re: Convert seconds to HH:MM:SS

    Try this:

    TimeSpan myts = new TimeSpan(-555234423213113);

    string myString = myts.ToString();

    MessageBox.Show(myString.Substring(0, myString.LastIndexOf(".") ));

  4. #4
    Join Date
    Apr 2008
    Posts
    53

    Re: Convert seconds to HH:MM:SS

    I think you need to use this in the field.
    Format(([Field1]/86400),"hh:mm:ss")

    Hope this helps you.

Similar Threads

  1. Computer Freezes for a few seconds about every 20 seconds
    By marcusjb in forum Motherboard Processor & RAM
    Replies: 4
    Last Post: 11-12-2011, 11:15 PM
  2. PC Shuts Down After A Few Seconds
    By Juggy in forum Hardware Peripherals
    Replies: 8
    Last Post: 29-08-2011, 06:50 PM
  3. How to convert Seconds to hours in C
    By TechPredator in forum Software Development
    Replies: 3
    Last Post: 15-10-2009, 11:38 PM
  4. Freeze for 2 seconds why?
    By Ramya K in forum Operating Systems
    Replies: 2
    Last Post: 03-10-2008, 04:39 PM
  5. Replies: 1
    Last Post: 26-07-2008, 02:30 AM

Tags for this Thread

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
  •  
Page generated in 1,714,244,062.95008 seconds with 17 queries