GetDate using jQuery, some refactoring. Change of date format to irish format