I have Match class and field Date start. My goal is get start as timestamp. I use Spring, AngularJs, and jackson as json converter.
Spring Controller:
@RequestMapping(value = "/web2/getMatch", method =RequestMethod.POST) public @ResponseBody Match getPicksHistory() { PickDAO pd = new PickDAO(); return pd.getMatch(); } On AgularJS controler:
var res = $http.post(urlSer.url+"web2/getMatch"); res.success(function(data, status, headers, config) { // now returns data.start = "Aug 8, 2015 7:00:00 PM" // My goal is get as timestamp });
Matchclass and type of itsstartfield.