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. General Programming
  3. C#
  4. Hi DatetimePicker control

Hi DatetimePicker control

Scheduled Pinned Locked Moved C#
tutorialcsharp
5 Posts 3 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.
  • S Offline
    S Offline
    somagunasekaran
    wrote on last edited by
    #1

    Hi All, I am using two Datetimepicker controls. one is Licence strat date and another one is Licence End date..But Licence start date is Current date default today date and Licence End date will add 1 day plus 2 years. for example Thus for Licence Start date 01/02/2008 the date will be End Date 31/01/2010...So how to do in C# Windows Application...So please reply..... Regards Somasundaram

    I want to join in the website

    C 1 Reply Last reply
    0
    • S somagunasekaran

      Hi All, I am using two Datetimepicker controls. one is Licence strat date and another one is Licence End date..But Licence start date is Current date default today date and Licence End date will add 1 day plus 2 years. for example Thus for Licence Start date 01/02/2008 the date will be End Date 31/01/2010...So how to do in C# Windows Application...So please reply..... Regards Somasundaram

      I want to join in the website

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What do you want to do, set a default value ? Why are you setting the end date if it's a fixed interval ? Set the Value of the picker to set it's value.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      S 1 Reply Last reply
      0
      • C Christian Graus

        What do you want to do, set a default value ? Why are you setting the end date if it's a fixed interval ? Set the Value of the picker to set it's value.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        S Offline
        S Offline
        somagunasekaran
        wrote on last edited by
        #3

        No... when i select the Start date and Automatically End date will add 2 years plus 1 day...So how to do?????? For example i give a start Date default date(whatever Date)is 12/05/2008 and End date will add 13/05/2010...automatically End Date will add 2years plus 1 day... :omg: Regards Somasundaram gunasekaran

        A 1 Reply Last reply
        0
        • S somagunasekaran

          No... when i select the Start date and Automatically End date will add 2 years plus 1 day...So how to do?????? For example i give a start Date default date(whatever Date)is 12/05/2008 and End date will add 13/05/2010...automatically End Date will add 2years plus 1 day... :omg: Regards Somasundaram gunasekaran

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          just try this.... DataTime Dt; try to use these methods....... Dt.AddYear() Dt.AddDay()

          Best Regards ----------------- Abhijit Jana "Success is Journey it's not a destination"

          S 1 Reply Last reply
          0
          • A Abhijit Jana

            just try this.... DataTime Dt; try to use these methods....... Dt.AddYear() Dt.AddDay()

            Best Regards ----------------- Abhijit Jana "Success is Journey it's not a destination"

            S Offline
            S Offline
            somagunasekaran
            wrote on last edited by
            #5

            Please i need some examples of Datetimepicker control Source code... pls reply... Regards Somasundaram

            I want to join in the website

            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