473,408 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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.
Feb 27 '07 #1
9 4549
Geoff
17
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.
Feb 28 '07 #2
Killer42
8,435 Expert 8TB
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.
Feb 28 '07 #3
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
Feb 28 '07 #4
Killer42
8,435 Expert 8TB
...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.
Feb 28 '07 #5
willakawill
1,646 1GB
Hi Scarlett, is this an assignment you have to do for class?
Feb 28 '07 #6
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
Feb 28 '07 #7
willakawill
1,646 1GB
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.
Feb 28 '07 #8
thank you, can you possible help me with how to focus the output from the weekday function to the calander
Feb 28 '07 #9
willakawill
1,646 1GB
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.
Feb 28 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Gav | last post by:
I have a database with date of births stored dd/mm/yyyy (english dating system) and =date() returns a date in the same format in my server. how do i find the persons age using these two pieces of...
7
by: Adrian | last post by:
I hit on this problem converting a VB.NET insurance application to C#. Age next birthday calculated from date of birth is often needed in insurance premium calculations. Originally done using...
4
by: Working_Girl | last post by:
Hi, I have a database with insurance clients and their dependents (spouses and children). We had a problem in the past with the twins and some of them have been entered with one month...
3
by: C Villalba | last post by:
Birth Date and a Purchase Date aata is being stored in sql. This information is retrieved across time zones through a .Net Web Service. When the data is viewed in a .Net client application these...
4
stormrider
by: stormrider | last post by:
Hi all, I'm trying to implement a Perl structure. My small program will do the followings; Take the birth date of the user as input. (Month's will be input as strings.) Take the current time...
0
by: iHateProg | last post by:
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...
2
by: Matuag | last post by:
Hi All, I am trying to create a form which can calculate with Age and Birth Date fields. I want Age to be calculated based on Birth Date (which I managed to do) but at the same time if Birth...
3
by: jamieharrop | last post by:
Afternoon all, I've been battling with this all day today and my brain is now pretty much fried. I have one table that lists several details about my customers (name, address, phone, date of...
1
by: jocelyn88 | last post by:
I would like to identify the Date of Birth, Gender and Age of a Malaysian by extraction the information from the new IC number. The object calculate the Date of Birth, Gender and Age. For example,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.