F
Fred Boer
Hi!
Suppose I am collecting Date of Birth data for a contacts application.
However, some contacts are only willing to provide day and month
information, but withold the year of birth. What's a good way to deal with
this? I can think of two, but...
1. Use a "dummy" value for an unknown year, (e.g. 1900). This would allow
the use of a date/time data type and be fairly easy to implement, but it
sure feels like I would be breaking some kind of relational rule to enter
"fake" data.
2. Create three text fields (txtDay, txtMonth, txtYear). This would allow
the use of "Null" for an unknown year (more correct "relationally", I
*think*...). But it would be more complicated to do age calculations and
sorting and the like, and would be more challenging to implement (Another
supposition, since I haven't tried it...)
Suggestions?
Thanks!
Fred Boer
P.S. Let's imagine that forcing compliance would break a business rule...
Suppose I am collecting Date of Birth data for a contacts application.
However, some contacts are only willing to provide day and month
information, but withold the year of birth. What's a good way to deal with
this? I can think of two, but...
1. Use a "dummy" value for an unknown year, (e.g. 1900). This would allow
the use of a date/time data type and be fairly easy to implement, but it
sure feels like I would be breaking some kind of relational rule to enter
"fake" data.
2. Create three text fields (txtDay, txtMonth, txtYear). This would allow
the use of "Null" for an unknown year (more correct "relationally", I
*think*...). But it would be more complicated to do age calculations and
sorting and the like, and would be more challenging to implement (Another
supposition, since I haven't tried it...)
Suggestions?
Thanks!
Fred Boer
P.S. Let's imagine that forcing compliance would break a business rule...