Check if date data found before trying to print it

Signed-off-by: JWhy <jwhy@jwhy.de>