ADDED: Handling added for Minimum and Maximum Date