add function about dimdate