The formula you wrote evaluates per row (detail section).
Since you are palcing it in a group header it is only evaluating for the first row in the group.
try to do some trouble shooting
make a formula field as lockwelle suggested usingh
isnull({table.datetime})
place it on the detail section
it should return True (if the fiel sis null) or False (if the field has a value).
Is this working as you expect?