DataUtil.getDateForUnixDate(value) I dont know DataUtil.getDateForUnixDate() method, but take care of character because of it is not number string. Update. To remove / character use replace method. I just announced the new Spring 5 modules in REST With Spring: >> CHECK OUT THE COURSE. 1.