commented if from around date function