I need to calculate the day of pregnancy that a woman is, having the information of the date the woman became pregnant and the date today.
I have the following statement:
Date dtToday = new Date(); //pega a data de hoje
Data dtEngravidou = Mommy.getDtPregnantDate(); //retorna a data em que ficou grávida
In theory, I would need to subtract today's date with the date of pregnancy and I would have the number of days that have already passed, so I would have the difference, that is, how many days pregnant is my mother.