use history and prepend date to prompt