Results 1 to 26 of 26

Thread: Incorrect Time Display

Threaded View

  1. #1

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Incorrect Time Display

    Code:
    Dim TestTime As DateTime
    
    TestTime = Convert.ToDateTime("12:00:00")
    
    Dim TestString As String = FormatDateTime(TestTime, DateFormat.LongTime)
    
    Debug.WriteLine(TestString & " <<--Error")
    debug output - a correct statement

    12:00:00 PM <<--Error




    0002, is the lonliest number... apologies to Three Dog Night
    Last edited by dbasnett; Mar 5th, 2008 at 04:42 PM.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width