handle the case of date not being given