Updated date function documentation