Try this-

 return{

 

  s.setStringParameter('fieldname', day.getByFormat("dd/MM/yyyy")); 

 

  }

 

No Luck Ruhi!!

 

Try this-

After line 9

var formatdate= day.getByFormat("dd-MM-yyyy");

return formatdate;

 

View solution in original post

Now its coming in correct format. But the result is in today's date all the time 

find_real_file.png

 

What is your requirement now?