changing date condition