change date length max macro