Added formatDate and formatDateTime

Added the formatDate.js function and formatDateTime.js function into the
main folder