Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. comparing time values

comparing time values

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-serversysadmin
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    imranafsari
    wrote on last edited by
    #1

    Dear All, I am using C# ,asp.net , sql server 2005. In a web form I have to create From time and to time and to time should be greater then from time I created two textboxes and place the maskedit for time(24 hrs) Now problem is how can I check or do client side validation for to time textbox as compare validator does not support time datatype. If u have better approach please suggest. Thank you.

    imran khan

    B M A 3 Replies Last reply
    0
    • I imranafsari

      Dear All, I am using C# ,asp.net , sql server 2005. In a web form I have to create From time and to time and to time should be greater then from time I created two textboxes and place the maskedit for time(24 hrs) Now problem is how can I check or do client side validation for to time textbox as compare validator does not support time datatype. If u have better approach please suggest. Thank you.

      imran khan

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      Check this javascriptcode for comparing date time.[^ and check this google result.[^]


      I Love T-SQL "Don't torture yourself,let the life to do it for you."

      1 Reply Last reply
      0
      • I imranafsari

        Dear All, I am using C# ,asp.net , sql server 2005. In a web form I have to create From time and to time and to time should be greater then from time I created two textboxes and place the maskedit for time(24 hrs) Now problem is how can I check or do client side validation for to time textbox as compare validator does not support time datatype. If u have better approach please suggest. Thank you.

        imran khan

        M Offline
        M Offline
        metallica_rock10
        wrote on last edited by
        #3

        Use javascript.

        ASP.NET

        1 Reply Last reply
        0
        • I imranafsari

          Dear All, I am using C# ,asp.net , sql server 2005. In a web form I have to create From time and to time and to time should be greater then from time I created two textboxes and place the maskedit for time(24 hrs) Now problem is how can I check or do client side validation for to time textbox as compare validator does not support time datatype. If u have better approach please suggest. Thank you.

          imran khan

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          use simple Javascript client side validation... That will solve .. I think

          Abhishek Sur

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups