Forum Discussion
KristinTEST
5 years agoQrew Member
I took a quick stab at this, but try this in your 'formula-date' field, and substitute the [ID#] with your corresponding ID # field. Someone may have a better solution for the year, as the formula below will only work up for years 1950-2049.
Lastly, if you want the date to be formatted correctly, with DD/MM/YYYY, you would need to use a 'formula-text' field with the ToFormattedText function.
var text DOB = Left([ID#],6);
var text Yr = Left($DOB, 2);
var text Mo = Mid($DOB, 3, 2);
var text CalDay = Mid($DOB, 5, 2);
ToDate(List("-",
$CalDay,
$Mo,
If(ToNumber($Yr)<=99 and ToNumber($Yr)>=50, 19 & $Yr, 20 & $Yr)))
------------------------------
Kristin Seibert
------------------------------
Lastly, if you want the date to be formatted correctly, with DD/MM/YYYY, you would need to use a 'formula-text' field with the ToFormattedText function.
var text DOB = Left([ID#],6);
var text Yr = Left($DOB, 2);
var text Mo = Mid($DOB, 3, 2);
var text CalDay = Mid($DOB, 5, 2);
ToDate(List("-",
$CalDay,
$Mo,
If(ToNumber($Yr)<=99 and ToNumber($Yr)>=50, 19 & $Yr, 20 & $Yr)))
------------------------------
Kristin Seibert
------------------------------
Related Content
- 6 months ago
- 7 months ago
- 3 years ago
- 2 years ago