Part your date into three parts. 1. day 2. month. 3. year
When you get a number, add it into day first.
And then keep on doing the mathematic part. Just think for a while and you will know the...