C# timespan code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • unnikrishnan123
    New Member
    • Apr 2008
    • 2

    C# timespan code

    Timespan ts=selectedDate Time-currentDateTime .now;
    if(ts.Minute<"S ome Value")
    {
    Message("Some Text");
    }
    I want to select the DateTime from datetime picker of Current date after half an hour start from the current Time.I want to get the values of half an hour
    Please Help me.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Question moved to .NET forum.

    Comment

    • ShahbazAshraf
      New Member
      • Mar 2008
      • 36

      #3
      Simplye use the Time Control and set interval as 30 min and fire the event handler with can do u custome work

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        "What?"
        Please re-state your question with much better formed sentances and punctuation.
        Be aware that the DateTime object has an .AddMinutes() function that can be used to add minutes to a date/time value

        Comment

        Working...