Last complete date of a provided date

@takbb

This is amazing.

I have imagine how much work you put for this one.

Help me today.