in reply to date problem
use strict; use warnings; [download]
Repost new question here when you have done that, run the program and fixed any errors or warnings that may have arised.