title: how to pass date in $http.get request
body: <p>i have list of task in my database. i want to filter by date(completed date)
  how to pass date with $http get request.i tried some code.it is giving exception.
  can any one help me.</p>
  
  <p>angular:</p>
  
  <pre><code>$scope.date=1468175400000;
  var deadline = new Date($scope.date);
          $http.get(
                  '/user/task/gettasks/?status=' + $scope.status
                          + '&amp;priority=' + $scope.priority
                          + '&amp;projectId=' + $scope.project+'&amp;deadline='+deadline).success(
                  function(response) {
                      debugger
                      $scope.tasks = response;
                  }).error(function(error) {
              console.log(error)
          })
  </code></pre>
  
  <p>service(spring):</p>
  
  <pre><code>@RequestMapping("/gettasks")
      @JsonView({ TaskJsonView.Summary.class })
      public List&lt;Task&gt; getTasks(@RequestParam(value="status" ) String status,
              @RequestParam("priority") String priority,
              @RequestParam("projectId") String projectId,@RequestParam("deadline") Long deadline)  {
  System.out.println(deadline);
          return taskControllerService.getTasks(status, priority, projectId,deadline);
  
      }
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>Object {
      timestamp: 1468819101831,
      status: 400,
      error: "Bad Request",
      exception: "org.springframework.web.method.annotation.MethodArgumentTypeMismatchException",
      message: "Failed to convert value of type [java.lang.String]… "
      MonJul11201600: 00: 00 GMT0530(IndiaStandardTime)
      ""…
  }
  error: "Bad Request"
  exception: "org.springframework.web.method.annotation.MethodArgumentTypeMismatchException"
  message: "Failed to convert value of type [java.lang.String] to required type [java.lang.Long]; nested exception is java.lang.NumberFormatException: For input string: "
  MonJul11201600: 00: 00 GMT0530(IndiaStandardTime)
  ""
  path: "/user/task/gettasks/"
  status: 400 timestamp: 1468819101831 proto: Object
  </code></pre>