Page 1 of 1
AgeAt() in Years and Months
Posted: 27 Apr 2022 14:17
by dbnut
Apologies if this has been raised before ( I did check KB & Forums).
The 1921 Census prompted me to look at formatting a string with calculated age in years and months. That doesn't seem possible without excruciating pain using a couple of TimeSpan() plus extra calculation. Hope I'm wrong

.
Re: AgeAt() in Years and Months
Posted: 27 Apr 2022 15:16
by tatewise
You may be correct Paul.
What are your input values to the calculation and where is the resulting age to be displayed?
Presumably, you know that any Fact Age can be entered in Years & Months directly.
So it can be entered directly from the 1921 Census details.
Thereafter, the 1921 Census Age can simply be displayed wherever it is needed.
Re: AgeAt() in Years and Months
Posted: 27 Apr 2022 18:57
by dbnut
tatewise wrote: ↑27 Apr 2022 15:16
You may be correct Paul.
What are your input values to the calculation and where is the resulting age to be displayed?
Hi, Mike, thanks for answering. This is the way I use input ages and the calculated value [shown in square brackets].
Obviously there would be some benefit for such comparisons if an option for AgeAt() to display as yrs + mns were available. And the evidence shows the calculation "internally"
does take account of differences down to day level.
For my part, there is (now) a great attraction for this feature. Saving diminishing brain-power resources in other parts of the diagram!