Add a method to know if a datetime is set