Alright, then why is it working fine with $time but not with $date?