finish datefunc

Signed-off-by: zhouyou <zhouyoug@gmail.com>