Update formatDate.js

Added 'use strict' statements to methods.