I\'m trying to post json data to a Controller in Java.
This is my controller:
@ResponseBody @RequestMapping(value=\"/{schoolId}\", method=RequestMeth
Since you are using moment there is a simple way to achieve this :
let startDate = moment().toISOString();
This will convert to valid LocalDateTime format