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. Other Discussions
  3. The Weird and The Wonderful
  4. How to check if one date is bigger than another...

How to check if one date is bigger than another...

Scheduled Pinned Locked Moved The Weird and The Wonderful
helptutorial
5 Posts 5 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.
  • P Offline
    P Offline
    Paulo Zemek
    wrote on last edited by
    #1

    Convert.ToDateTime(txtDtaPermissao.Text); Convert.ToDateTime(txtDtaValidadePermissao.Text); object a = Convert.ToDateTime(txtDtaValidadePermissao.Text) - Convert.ToDateTime(txtDtaPermissao.Text); if(((TimeSpan)a).Days < 0) ... from here it only shows the message... it is not the problem anymore.

    L B Q 3 Replies Last reply
    0
    • P Paulo Zemek

      Convert.ToDateTime(txtDtaPermissao.Text); Convert.ToDateTime(txtDtaValidadePermissao.Text); object a = Convert.ToDateTime(txtDtaValidadePermissao.Text) - Convert.ToDateTime(txtDtaPermissao.Text); if(((TimeSpan)a).Days < 0) ... from here it only shows the message... it is not the problem anymore.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Paulo Zemek wrote:

      ... from here it only shows the message... it is not the problem anymore.

      That's a relief ;)

      1 Reply Last reply
      0
      • P Paulo Zemek

        Convert.ToDateTime(txtDtaPermissao.Text); Convert.ToDateTime(txtDtaValidadePermissao.Text); object a = Convert.ToDateTime(txtDtaValidadePermissao.Text) - Convert.ToDateTime(txtDtaPermissao.Text); if(((TimeSpan)a).Days < 0) ... from here it only shows the message... it is not the problem anymore.

        B Offline
        B Offline
        Bernard Laplace
        wrote on last edited by
        #3

        I really appreciate this forum for all the code snippets I can reuse in Visual Studio.

        J 1 Reply Last reply
        0
        • B Bernard Laplace

          I really appreciate this forum for all the code snippets I can reuse in Visual Studio.

          J Offline
          J Offline
          Jeroen De Dauw
          wrote on last edited by
          #4

          Do you mind sharing your collection so everyone can benefit?

          Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

          1 Reply Last reply
          0
          • P Paulo Zemek

            Convert.ToDateTime(txtDtaPermissao.Text); Convert.ToDateTime(txtDtaValidadePermissao.Text); object a = Convert.ToDateTime(txtDtaValidadePermissao.Text) - Convert.ToDateTime(txtDtaPermissao.Text); if(((TimeSpan)a).Days < 0) ... from here it only shows the message... it is not the problem anymore.

            Q Offline
            Q Offline
            QuiJohn
            wrote on last edited by
            #5

            Easy, you just ask each of them to step on the scale.


            He said, "Boy I'm just old and lonely, But thank you for your concern, Here's wishing you a Happy New Year." I wished him one back in return.

            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