Test if dates are set when computing the Date Text
Fix type