add date time util and finish the endpoint logic