In the live-action movies, this is basically what L did. But IIRC, at least there, you could only set your death for up to 30 days into the future.
Interesting. Lame restriction, but yeah, definitely covers what I always considered the biggest plot hole "what if?" that was never explored in the original anime.