Date Function is now external function and works for different days too