locked
Time comparision alone in datetime picker RRS feed

  • Question

  • Hi,
      I am comparing 2 datetimepickers .Let it be dtp1 and dtp2 .I want to compare time alone.So i did it something like

    dtp1.customformat="HH:mm:ss"
    dtp2.customformat="HH:mm:ss"
    If dtp1.text>=dtp2.text then    
        MsgBox("dtp1 >= dtp2")
    else
        MsgBox("dtp1 <dtp2")
    Endif

    Sometimes if condition is working properly.(i.e)comparing correctly.But sometimes it is doing in the opposite manner.Thousands of advance thanks if you could help me on this issue

    Thanks,
    Rajkumar

    • Moved by nobugz Thursday, August 21, 2008 12:14 AM Not a 64-bit .NET framework q (Moved from 64-Bit .NET Framework Development. to Off-Topic Posts (Do Not Post Here))
    Wednesday, August 20, 2008 9:34 AM

Answers