[contrailpin] Use a ternary operator for date arg.