Added SQL command to help and loosened valid date check