Day of Birth generator...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iHateProg
    New Member
    • Feb 2007
    • 7

    Day of Birth generator...

    I am looking for a day of birth generator that will use MONTH DATE AND YEAR born to generate the BIRTH DAY from 1900-2000.
    Ex:- If someone was born on April 10, 1990. what day of the week were they born on?

    Please help &

    Thank you for any help.
  • Geoff
    New Member
    • Feb 2007
    • 17

    #2
    I've just been messing in Vb as I thought this sounded like an interesting application to make. I found it quite easy to make with use of a calendar control.

    I had the user input their date of birth in numeric format, then the calendar view zoomed to the date, and a label had the day found printed in it.

    I would post my code here for it, but it'd be embarracing as it's probably a really long winded way as there is like 50 lines of code to it :o, but as always with my applications I've added to it. ^^

    If you want me to post the code ask me and I will, but from what I've said I think it's quite self explanatory how to make it work.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by iHateProg
      I am looking for a day of birth generator that will use MONTH DATE AND YEAR born to generate the BIRTH DAY from 1900-2000.
      Ex:- If someone was born on April 10, 1990. what day of the week were they born on?
      Like I said in the PM, try searching for "Zellers congruence law". This has come up before on TheScripts. If you don't like the (other) thread that that search points to, then just search for things like weekday. It's a fairly frequent topic.

      Comment

      • iHateProg
        New Member
        • Feb 2007
        • 7

        #4
        Geoff, thank you very much for your help its immencely appreciated and it would be great if you could post the code for me...

        :)

        Scarlett

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by Geoff
          ...I had the user input their date of birth in numeric format, then the calendar view zoomed to the date, and a label had the day found printed in it.
          Just off the top of my head, if we assume you have three numbers dd, mm and yyyy, I guess you could use something like the DateSerial function to convert them to a date, and WeekDay function to get the day of the week. See the manual or online help for details of the functions.
          Last edited by Killer42; Feb 28 '07, 03:10 AM. Reason: Good point, willakawill.

          Comment

          • willakawill
            Top Contributor
            • Oct 2006
            • 1646

            #6
            Hi Scarlett, is this an assignment you have to do for class?

            Comment

            • iHateProg
              New Member
              • Feb 2007
              • 7

              #7
              Originally posted by willakawill
              Hi Scarlett, is this an assignment you have to do for class?
              yes its part of a project am doing and i require it becuase my teacher wanted it in my program

              Comment

              • willakawill
                Top Contributor
                • Oct 2006
                • 1646

                #8
                Originally posted by iHateProg
                yes its part of a project am doing and i require it becuase my teacher wanted it in my program
                Well good for you. You told the truth about it. On the second shot yes, but still you got there.

                The policy of TSDN is not to complete assignments for students. If you are stuck on some technical issue and can show that you made a decent attempt then maybe we can guide you on that. Asking for full code answers, although tempting for you, will not work here.

                Keep working at it and let us know how you are getting on with this project.

                Comment

                • iHateProg
                  New Member
                  • Feb 2007
                  • 7

                  #9
                  thank you, can you possible help me with how to focus the output from the weekday function to the calander

                  Comment

                  • willakawill
                    Top Contributor
                    • Oct 2006
                    • 1646

                    #10
                    Originally posted by iHateProg
                    thank you, can you possible help me with how to focus the output from the weekday function to the calander
                    Sorry Scarlett. You have to do your own assignment/project

                    Of course I can't stop you from pm-ing the guys here and, i'm sure, getting into any kind of correspondence with a 17 year old woman will be more than their ethics can stand. Aint gonna happen in this forum though. Not while killer has his beady eyes on the process.

                    Comment

                    Working...