Added getFormattedDate method to TransactionDate class