changed date format to "minutes since beginning of week" for easier calculations - bugfix
improved date picking from optimal potential dates