Welcome! Log In Create A New Profile

Advanced

Function Age (Date1, Date2) - I need date1 if I know the result of the function

Posted by Sead Grbesic 
Hello everyone,

I need help to solve the problem. I use the Age function which uses two parameters, ie two dates between which the function returns the number of years, months and days as a result.
Example:
Age ("19690513", "20051010")
// Returns "00360427" which means 36 years, 4 months and 27 days

I need the first date if I know the result and the second date.
If anyone has an idea or knows the solution to this problem, I would be very grateful.

Thanks in advance and best regards
MyDate1 is date = MyDate2
MyDate1..Year-=36
MyDate1..Month-=4
MyDate1..Day-=27
info(MyDate1)
Thanks Argus

It is a solution that works. thumbs up
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: