Kazuo Ishiguro’s novel Never Let Me Go (or – better – the film adaptation of that novel) addresses this really will. It doesn’t deal with specific dates of death but it DOES deal with people knowing that they are not long for this world, touching on issues of destination/pre-destination, free will, motivation to get on with things etc. Highly recommended.