NG-Client: JSUtils dateFormat() is deprecated

I get this warning in NG-Client for utils.dateFormat():

[attachment=0]utils_dateFormat.png[/attachment]

It seems to work, but I don’t trust this. Is there a replaced function in NG for that?

I could fix it:

_newRec.delivery_datetime = utils.dateFormat(new Date(_orderValue[7]),'dd.MM.yyyy HH:mm');
_newRec.deadline_datetime = utils.dateFormat(new Date(_orderValue[8]),'dd.MM.yyyy HH:mm');

The dateFormat function is deprecated when using a string as argument, you should use utils.parseDate(string, format) instead (or make sure that you pass a date).

Note that if you press while hovering a deprecated function, the tooltip explains which function to use instead:

[attachment=0]dateFormat.png[/attachment]