enhance formatDate function to accept an optional argument containing the time zone