psionic98
New member
- Joined
- Feb 25, 2009
- Messages
- 4
- Programming Experience
- Beginner
Hi everyone,
I'm new to the forums, so you can kindly scold me for not finding my answers on my own if they are already out there, but I haven't found a direct answer to what I need.
So here's my problem, first off I am working with a developer of an application in which uses .net on the front/back ends, but he is telling me that their system cannot handle the math for this on the front end, and isnt sure how to do it on the back. I want/need it done so I am out finding it for myself.
Heres the problem:
Front end user is asked to enter date of birth(dob) with standard xx/xx/xxxx format. And right after that question is a drop-down menu with text options for under 1month (then prompts for current age in days), under 2 years (prompts for current age in months), over 2 years (prompts for current age in years). What my developer is saying is that their system cannot handle the math to turn DOB into days (current date - dob = days) and then using more math forumas to check if days <=30 that equals under 1 month, and therefore would have the # of days for the text prompts.. then >=31 || <= 730 that equals 2 years or under, and then convert that into months, and >=731 is years and convert it to years.
What I need to know is how to do this in vb, and if possible, how can i use it to also auto choose the field that corresponds to the correct text dropdown.
So we have the fields
dob
dropdown (txt of 3 msgs)
days
months
years
I need to calc DOB into days, then check days against set #s for 1month = 30 days, and then it chooses the dropdown called under 1 month and populates days field with the # of days. and then do the same calcs for months/years fields if possible to.
I apologize if this doesnt make enough sense and would be more than willing to discuss further if someone can take the time to help me. This is for a state mandated system that my company is starting to do electronically instead of manually over the web. And regretfully our developer is smart, but apparently cannot do this.. very annoying.
Any help is greatly appreciated.
Thanks.
Stan
I have a DOB entered on the front end, and currently, due to some restrictions on where this data is sent, there is also a drop-down menu box that has to be filled in which pertains to the actual age. What I need to know is
I'm new to the forums, so you can kindly scold me for not finding my answers on my own if they are already out there, but I haven't found a direct answer to what I need.
So here's my problem, first off I am working with a developer of an application in which uses .net on the front/back ends, but he is telling me that their system cannot handle the math for this on the front end, and isnt sure how to do it on the back. I want/need it done so I am out finding it for myself.
Heres the problem:
Front end user is asked to enter date of birth(dob) with standard xx/xx/xxxx format. And right after that question is a drop-down menu with text options for under 1month (then prompts for current age in days), under 2 years (prompts for current age in months), over 2 years (prompts for current age in years). What my developer is saying is that their system cannot handle the math to turn DOB into days (current date - dob = days) and then using more math forumas to check if days <=30 that equals under 1 month, and therefore would have the # of days for the text prompts.. then >=31 || <= 730 that equals 2 years or under, and then convert that into months, and >=731 is years and convert it to years.
What I need to know is how to do this in vb, and if possible, how can i use it to also auto choose the field that corresponds to the correct text dropdown.
So we have the fields
dob
dropdown (txt of 3 msgs)
days
months
years
I need to calc DOB into days, then check days against set #s for 1month = 30 days, and then it chooses the dropdown called under 1 month and populates days field with the # of days. and then do the same calcs for months/years fields if possible to.
I apologize if this doesnt make enough sense and would be more than willing to discuss further if someone can take the time to help me. This is for a state mandated system that my company is starting to do electronically instead of manually over the web. And regretfully our developer is smart, but apparently cannot do this.. very annoying.
Any help is greatly appreciated.
Thanks.
Stan
I have a DOB entered on the front end, and currently, due to some restrictions on where this data is sent, there is also a drop-down menu box that has to be filled in which pertains to the actual age. What I need to know is