add sample for function and datetime.