Now I'm creating currentFormattedDate with a function that returns string var created like:
return "datetime'" + yyyy + "-" + mm + "-" + dd + "T00:00:00'";
It can't be do it like this? In oData request by url must be this => "Date eq datetime'2015-04-29'" so I supposed that with a string should be possible.