Threshold date function.