New simple date function.