Date of Birth

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 7
Reputation: shraddha24 is an unknown quantity at this point 
Solved Threads: 0
shraddha24 shraddha24 is offline Offline
Newbie Poster

Date of Birth

 
0
  #1
Dec 5th, 2008
I am developing a job portal and i want the end user to enter his/her D.O.B..for that I want to create 3 dropdown one for..day,second for month and third for year..since I'm new to asp.net 2.0 my problem is how to program to as to get the values of all the 3 dropdown boxes..into one field. Can anyone help me out? If source code is available..then it's really nice.
thanks..in advance
shraddha
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Date of Birth

 
0
  #2
Dec 5th, 2008
When the data is posted onto the receiving page, you'll get say

month=5
Day=8
year = 1945

(not my birthday!!)

you would then - add them up like a human would to form a date like string such as "8/5/1945" and try and convert it to a date, if it succeeds they it was ok however if they entered something like 31st september.. it woudl fail and you know they need to check what they entered
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 7
Reputation: shraddha24 is an unknown quantity at this point 
Solved Threads: 0
shraddha24 shraddha24 is offline Offline
Newbie Poster

Re: Date of Birth

 
0
  #3
Dec 5th, 2008
Thanks Liza,
Even I was thinking on a same note..and then will I have to take the database..field datetime...n then string.parse to datetime..field..n at the time of editing the user again gets the string format of datetime..but may be at the time of editing the end user may also see the time..because..datetime takes time by default. Any suggestions?
Well I'm going to give it a try.
anyways thanks
shraddha
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Date of Birth

 
0
  #4
Dec 5th, 2008
Then you need to ensure your formatting for that field removes any time portion.

Also, dont rely on the DB to do the date validation, do it before you try storing the data
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 172
Reputation: Jugortha is an unknown quantity at this point 
Solved Threads: 16
Jugortha Jugortha is offline Offline
Junior Poster

Re: Date of Birth

 
0
  #5
Dec 5th, 2008
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,039
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Date of Birth

 
0
  #6
Dec 6th, 2008
Date of birth on a job portal? Are you mad?
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 7
Reputation: shraddha24 is an unknown quantity at this point 
Solved Threads: 0
shraddha24 shraddha24 is offline Offline
Newbie Poster

Re: Date of Birth

 
0
  #7
Dec 8th, 2008
Are you mad rashakil ? How will a company identify that a particular employee fits in the specified age group of employees for a particular job. Go through some of the job portals and u'll know what I'm saying..Anyways..why am I explaining you
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Date of Birth

 
0
  #8
Dec 8th, 2008
DOB shouldnt matter if someones capable of doing a job they are capable however, I dont see why it shouldnt be there.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 7
Reputation: shraddha24 is an unknown quantity at this point 
Solved Threads: 0
shraddha24 shraddha24 is offline Offline
Newbie Poster

Re: Date of Birth

 
0
  #9
Dec 8th, 2008
Originally Posted by LizR View Post
Then you need to ensure your formatting for that field removes any time portion.

Also, dont rely on the DB to do the date validation, do it before you try storing the data
Hi,
LizR if you can provide me some code on how to extract values in different dropdownlist n then rebind it a database field I'll be greatful since all my attempts give me some eroor or the other.
thanks
shraddha
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 7
Reputation: shraddha24 is an unknown quantity at this point 
Solved Threads: 0
shraddha24 shraddha24 is offline Offline
Newbie Poster

Re: Date of Birth

 
0
  #10
Dec 8th, 2008
Originally Posted by LizR View Post
DOB shouldnt matter if someones capable of doing a job they are capable however, I dont see why it shouldnt be there.
Hi,
LizR should I remove D.O.B field from my website is it really unnecessary?
thanks
shraddha
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC