title: How do I convert a Date request.getParameter to string?
body: <p>So this is my servlet codes. I'm tryna add the user input to mysql.
  AddEventsServlet.java:</p>
  
  <pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      // TODO Auto-generated method stub
      //doGet(request, response);
      String title = request.getParameter("title");
      String eventDesc= request.getParameter("eventDesc");
      &lt;!--Here is my problem, it can't compile cuz Date StartTime and EndTime and Double budget is wrong --&gt;
  
      Date StartTime= request.getParameter("StartTime");
      Date EndTime= request.getParameter("EndTime");
  
      Double Budget= request.getParameter("Budget");
  }
  </code></pre>
  
  <p>I saw somewhere that request.getParameter is only for String so how do I convert it to String? Help please :)</p>