09-18-2009 07:29 AM
I want to write an app that processes dates from string format and will give me a timestamp.
Explantion of use:
I have an array of dates (of birth), and I want to find out how old each person is at a given point in time (denoted by a timestamp constant).
Or has anyone got a better solution for caculating age from an array of strings and another input of type undefined. (age output is numeric.
Can anyone point me in the right direction to start please.
Solved! Go to Solution.
09-18-2009 07:41 AM
09-18-2009 09:29 AM
09-18-2009 12:42 PM
09-18-2009 01:08 PM
aeastet wrote:
I gave him the rest of the VI to show how it could be done and all of the parts required. I knew that there was an easier way to do this.
<Scratches head> Then if you knew there was a far easier way, why did you show such a convoluted approach? That would simply confuse someone who's new to LabVIEW.
09-21-2009 03:29 AM
Thanks to both of you for pointing me in that direction.
I have worked out how to do what I wanted and posted it back here as an explanation.
The VI takes a date input in the defined format (could come from a timestamp date string, or a database etc) and calculates the age of the person at the dat provided using the DOB provided. (I have not bothered to debug this yet so no nasty comments about error trapping and habdling people who are not yet born thank you!!)