Couldnt use .length to check for date