The code contains a deprecated expression. A preferred alternative expression performs the same task. Use the new approach, since the support for deprecated expressions may be dropped in later versions of the language.
To correct this error
-
Use the encodeURI Method instead of the escape Method.
-
Use the getFullYear Method instead of the getYear Method.
-
Use the setFullYear Method instead of the setYear Method.
-
Use the substring Method instead of the substr Method.
-
Use the toUTCString Method instead of the toGMTString Method.
-
Use the decodeURI Method instead of the unescape Method.