Implemented date.format() and date.setLocale()
Improved the syntax of format.date() and added format.setupLocale()