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
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
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
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
Date of birth on a job portal? Are you mad?
Rashakil Fol
Super Senior Demiposter
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
DOB shouldnt matter if someones capable of doing a job they are capable however, I dont see why it shouldnt be there.
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
I wouldnt say unnecessary as certainly where I am, we have to give date of birth, and marital status - arguably this has no relevance to any job you may or may not apply for though.
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
I thought we already went through that at the beginning of the thread.
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
Date of birth on a job portal? Are you mad?
DOB shouldnt matter if someones capable of doing a job they are capable however, I dont see why it shouldnt be there.
should I remove D.O.B field from my website is it really unnecessary?
Rashkil is right. In fact, in many countries (most of the EU in fact) its illegal for employers to select candidates based on age. So long as they are old enough to legally do the job then they are not allowed to discriminate.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
However, depending on the job, there are some age restrictions such as you cant have a 17yr old truck driver they have to be over 21 I believe, however, as long as it is more for identification rather than discrimination I dont see an issue with it being there
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
Yeah thats why i said "So long as they are old enough to legally do the job". You gotta be 18 to work in a pub, for example.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190