Time question..!!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Time question..!!

  1. #1
    Join Date
    Jul 2004
    Posts
    366

    Question Time question..!!

    I have a textbox and when I put 3.5 I'm formatting the using hh:nn but it keeps putting 03:05 when it should be 03:50, why is this? Any Ideas?

    Thanks in advance...!

    Jim

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    Did you try to enter 3.50?

    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I don't understand why 3.5 "should be" 03:50? I would expect it to be 03:30 (30 minutes is 0.5 hours). Try this:

    txtTime.Text = Format(Format(txtTime.Text, "00.00"), "Short Time")
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  4. #4
    Join Date
    Jul 2004
    Posts
    366

    That worked Phil..

    Thanks.

    That did it.

    Jim

Similar Threads

  1. Make applet taking the server time?
    By mmvsbg in forum Java
    Replies: 1
    Last Post: 08-08-2005, 10:18 AM
  2. How to get time from the network server?
    By cssriraman in forum VB Classic
    Replies: 1
    Last Post: 05-16-2005, 08:30 AM
  3. wav file fade in out help
    By jase_dukerider in forum C++
    Replies: 2
    Last Post: 04-14-2005, 07:48 PM
  4. Long, basic Java Question.
    By Tom in forum Java
    Replies: 0
    Last Post: 03-18-2002, 10:25 AM
  5. SELECT statement and time format
    By JeffM in forum Database
    Replies: 2
    Last Post: 02-06-2001, 05:21 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center