Added determineDate