wrap exist clause around date