Attempting the following code:
var second_date = moment(currentdate).format('DD-MM-YYYY');
The result is:
Uncaught Reference Error: moment is not defined.
success: function(response){
var len = 0;
if(response != null){
len = response.length;
for(var i=0; i<len; i++)
{
var id = response[i].id;
var currentdate = response[i].currentdate;
var name = response[i].name;
}
}