Added date function.