add function current datetime